line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package DBIx::DataModel::Meta::Source::Join; |
2
|
18
|
|
|
18
|
|
134
|
use strict; |
|
18
|
|
|
|
|
39
|
|
|
18
|
|
|
|
|
568
|
|
3
|
18
|
|
|
18
|
|
97
|
use warnings; |
|
18
|
|
|
|
|
40
|
|
|
18
|
|
|
|
|
567
|
|
4
|
18
|
|
|
18
|
|
102
|
use Params::Validate qw/ARRAYREF/; |
|
18
|
|
|
|
|
50
|
|
|
18
|
|
|
|
|
973
|
|
5
|
|
|
|
|
|
|
|
6
|
18
|
|
|
18
|
|
136
|
use parent "DBIx::DataModel::Meta::Source"; |
|
18
|
|
|
|
|
45
|
|
|
18
|
|
|
|
|
128
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new { |
9
|
29
|
|
|
29
|
0
|
86
|
my $class = shift; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
# the real work occurs in parent class |
12
|
29
|
|
|
|
|
232
|
$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
|
83
|
my $self = shift; |
28
|
|
|
|
|
|
|
|
29
|
43
|
|
|
|
|
67
|
return [-join => @{$self->{sqla_join_args}}]; |
|
43
|
|
|
|
|
270
|
|
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub where { |
33
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
34
|
0
|
|
|
|
|
|
return; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |