line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package KiokuDB::Backend::TypeMap::Default; |
4
|
22
|
|
|
22
|
|
14360
|
use Moose::Role; |
|
22
|
|
|
|
|
43
|
|
|
22
|
|
|
|
|
189
|
|
5
|
|
|
|
|
|
|
|
6
|
22
|
|
|
22
|
|
91439
|
use namespace::clean -except => 'meta'; |
|
22
|
|
|
|
|
43
|
|
|
22
|
|
|
|
|
171
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
has default_typemap => ( |
9
|
|
|
|
|
|
|
does => "KiokuDB::Role::TypeMap", |
10
|
|
|
|
|
|
|
is => "ro", |
11
|
|
|
|
|
|
|
required => 1, |
12
|
|
|
|
|
|
|
lazy_build => 1, |
13
|
|
|
|
|
|
|
); |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
requires "_build_default_typemap"; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
__PACKAGE__ |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
__END__ |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=pod |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head1 NAME |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
KiokuDB::Backend::TypeMap::Default - A role for backends with a default typemap |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 SYNOPSIS |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
package MyBackend; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
with qw( |
32
|
|
|
|
|
|
|
... |
33
|
|
|
|
|
|
|
KiokuDB::Backend::TypeMap::Default |
34
|
|
|
|
|
|
|
); |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub _build_default_typemap { |
37
|
|
|
|
|
|
|
... |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 DESCRIPTION |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
This role requires that you implement a single method, |
43
|
|
|
|
|
|
|
C<_build_default_typemap> that will return a L<KiokuDB::TypeMap> instance. |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
See L<KiokuDB::TypeMap::Default> for details. |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=cut |
48
|
|
|
|
|
|
|
|