| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
4
|
|
|
4
|
|
25
|
use strict; |
|
|
4
|
|
|
|
|
7
|
|
|
|
4
|
|
|
|
|
155
|
|
|
2
|
4
|
|
|
4
|
|
24
|
use warnings; |
|
|
4
|
|
|
|
|
8
|
|
|
|
4
|
|
|
|
|
241
|
|
|
3
|
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package MooseX::AttributeIndexes::Meta::Attribute::Trait::Indexed; |
|
5
|
|
|
|
|
|
|
BEGIN { |
|
6
|
4
|
|
|
4
|
|
160
|
$MooseX::AttributeIndexes::Meta::Attribute::Trait::Indexed::AUTHORITY = 'cpan:KENTNL'; |
|
7
|
|
|
|
|
|
|
} |
|
8
|
|
|
|
|
|
|
{ |
|
9
|
|
|
|
|
|
|
$MooseX::AttributeIndexes::Meta::Attribute::Trait::Indexed::VERSION = '1.0.3'; |
|
10
|
|
|
|
|
|
|
} |
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# ABSTRACT: A Trait for attributes which permits various indexing tunables |
|
13
|
|
|
|
|
|
|
|
|
14
|
4
|
|
|
4
|
|
23
|
use Moose::Role; |
|
|
4
|
|
|
|
|
8
|
|
|
|
4
|
|
|
|
|
398
|
|
|
15
|
4
|
|
|
4
|
|
28890
|
use Moose::Meta::Attribute::Custom::Trait::Indexed; |
|
|
4
|
|
|
|
|
13
|
|
|
|
4
|
|
|
|
|
161
|
|
|
16
|
4
|
|
|
4
|
|
17993
|
use MooseX::Types::Moose 0.19 qw(:all); |
|
|
4
|
|
|
|
|
303502
|
|
|
|
4
|
|
|
|
|
54
|
|
|
17
|
4
|
|
|
4
|
|
36464
|
use namespace::autoclean 0.08; |
|
|
4
|
|
|
|
|
114
|
|
|
|
4
|
|
|
|
|
32
|
|
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
has 'indexed' => ( |
|
21
|
|
|
|
|
|
|
is => 'ro', |
|
22
|
|
|
|
|
|
|
isa => Bool | CodeRef, |
|
23
|
|
|
|
|
|
|
required => 1, |
|
24
|
|
|
|
|
|
|
default => 0, |
|
25
|
|
|
|
|
|
|
); |
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
has 'primary_index' => ( |
|
29
|
|
|
|
|
|
|
is => 'ro', |
|
30
|
|
|
|
|
|
|
isa => Bool | CodeRef, |
|
31
|
|
|
|
|
|
|
required => 1, |
|
32
|
|
|
|
|
|
|
default => 0, |
|
33
|
|
|
|
|
|
|
); |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
__END__ |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=pod |
|
40
|
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 NAME |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
MooseX::AttributeIndexes::Meta::Attribute::Trait::Indexed - A Trait for attributes which permits various indexing tunables |
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 VERSION |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
version 1.0.3 |
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
|
50
|
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head2 C<indexed> |
|
52
|
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
Bool. 0 = This attribute is not/cannot indexed, 1 = This Attribute is/can-be indexed. |
|
54
|
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
CodeRef. sub{ my( $attribute_meta, $object, $attribute_value ) = @_; .... return } |
|
56
|
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head2 C<primary_index> |
|
58
|
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Bool. 0 = This attribute is not a primary index, 1 = This Attribute is a primary index. |
|
60
|
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
CodeRef. sub{ my( $attribute_meta, $object, $attribute_value ) = @_; .... return } |
|
62
|
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 AUTHORS |
|
64
|
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=over 4 |
|
66
|
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=item * |
|
68
|
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
Kent Fredric <kentnl@cpan.org> |
|
70
|
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=item * |
|
72
|
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
Jesse Luehrs <doy@cpan.org> |
|
74
|
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=back |
|
76
|
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
|
78
|
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
This software is copyright (c) 2013 by Kent Fredric. |
|
80
|
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
|
82
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
|
83
|
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=cut |