line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package MongoDBx::AutoDeref::Types; |
2
|
|
|
|
|
|
|
BEGIN { |
3
|
2
|
|
|
2
|
|
48
|
$MongoDBx::AutoDeref::Types::VERSION = '1.110560'; |
4
|
|
|
|
|
|
|
} |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
#ABSTRACT: Types specific for MongoDBx::AutoDeref |
7
|
|
|
|
|
|
|
|
8
|
2
|
|
|
2
|
|
11
|
use warnings; |
|
2
|
|
|
|
|
13
|
|
|
2
|
|
|
|
|
63
|
|
9
|
2
|
|
|
2
|
|
10
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
80
|
|
10
|
|
|
|
|
|
|
|
11
|
2
|
|
|
2
|
|
11
|
use MooseX::Types -declare => [qw/ DBRef /]; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
24
|
|
12
|
2
|
|
|
2
|
|
8052
|
use MooseX::Types::Structured(':all'); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
17
|
|
13
|
2
|
|
|
2
|
|
1050
|
use MooseX::Types::Moose(':all'); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
18
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
subtype DBRef, |
18
|
|
|
|
|
|
|
as Dict |
19
|
|
|
|
|
|
|
[ |
20
|
|
|
|
|
|
|
'$db' => Str, |
21
|
|
|
|
|
|
|
'$ref' => Str, |
22
|
|
|
|
|
|
|
'$id' => class_type('MongoDB::OID') |
23
|
|
|
|
|
|
|
]; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=pod |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 NAME |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
MongoDBx::AutoDeref::Types - Types specific for MongoDBx::AutoDeref |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 VERSION |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
version 1.110560 |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 TYPES |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head2 DBRef |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Dict |
43
|
|
|
|
|
|
|
[ |
44
|
|
|
|
|
|
|
'$db' => Str, |
45
|
|
|
|
|
|
|
'$ref' => Str, |
46
|
|
|
|
|
|
|
'$id' => class_type('MongoDB::OID') |
47
|
|
|
|
|
|
|
] |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
For MongoDBx::AutoDeref to function, it has to operate with the codified |
50
|
|
|
|
|
|
|
database reference. This type constraint checks that the hash has the necessary |
51
|
|
|
|
|
|
|
fields. One slight variation from the mongodb docs is that the $db field is |
52
|
|
|
|
|
|
|
required. This might change in the future, but it certainly doesn't hurt to be |
53
|
|
|
|
|
|
|
explicit. |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
http://www.mongodb.org/display/DOCS/Database+References |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 AUTHOR |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Nicholas R. Perez <nperez@cpan.org> |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
This software is copyright (c) 2010 by Nicholas R. Perez <nperez@cpan.org>. |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
66
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=cut |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
__END__ |