KiokuDB::Backend::TypeMap::Default - A role for backends with a default typemap


KiokuDB documentation Contained in the KiokuDB distribution.

Index


Code Index:

NAME

Top

KiokuDB::Backend::TypeMap::Default - A role for backends with a default typemap

SYNOPSIS

Top

    package MyBackend;

    with qw(
        ...
        KiokuDB::Backend::TypeMap::Default
    );

    sub _build_default_typemap {
        ...
    }

DESCRIPTION

Top

This role requires that you implement a single method, _build_default_typemap that will return a KiokuDB::TypeMap instance.

See KiokuDB::TypeMap::Default for details.


KiokuDB documentation Contained in the KiokuDB distribution.

#!/usr/bin/perl

package KiokuDB::Backend::TypeMap::Default;
use Moose::Role;

use namespace::clean -except => 'meta';

has default_typemap => (
    does => "KiokuDB::Role::TypeMap",
    is   => "ro",
    required   => 1,
    lazy_build => 1,
);

requires "_build_default_typemap";

__PACKAGE__

__END__