line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package DBIx::DataModel::Meta::Source::Join; |
2
|
17
|
|
|
17
|
|
106
|
use strict; |
|
17
|
|
|
|
|
36
|
|
|
17
|
|
|
|
|
436
|
|
3
|
17
|
|
|
17
|
|
78
|
use warnings; |
|
17
|
|
|
|
|
35
|
|
|
17
|
|
|
|
|
426
|
|
4
|
17
|
|
|
17
|
|
90
|
use Params::Validate qw/ARRAYREF/; |
|
17
|
|
|
|
|
38
|
|
|
17
|
|
|
|
|
792
|
|
5
|
|
|
|
|
|
|
|
6
|
17
|
|
|
17
|
|
84
|
use parent "DBIx::DataModel::Meta::Source"; |
|
17
|
|
|
|
|
54
|
|
|
17
|
|
|
|
|
121
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new { |
9
|
29
|
|
|
29
|
0
|
60
|
my $class = shift; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
# the real work occurs in parent class |
12
|
29
|
|
|
|
|
181
|
$class->_new_meta_source( |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
# more spec for Params::Validate |
15
|
|
|
|
|
|
|
{ sqla_join_args => {type => ARRAYREF} }, |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
# method to call in schema for building @ISA |
18
|
|
|
|
|
|
|
'join_parent', |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
# original args |
21
|
|
|
|
|
|
|
@_ |
22
|
|
|
|
|
|
|
); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub db_from { |
27
|
43
|
|
|
43
|
0
|
75
|
my $self = shift; |
28
|
|
|
|
|
|
|
|
29
|
43
|
|
|
|
|
57
|
return [-join => @{$self->{sqla_join_args}}]; |
|
43
|
|
|
|
|
219
|
|
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub where { |
33
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
34
|
0
|
|
|
|
|
|
return; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |