line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package SQL::OOP::Join; |
2
|
4
|
|
|
4
|
|
2476
|
use strict; |
|
4
|
|
|
|
|
6
|
|
|
4
|
|
|
|
|
142
|
|
3
|
4
|
|
|
4
|
|
20
|
use warnings; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
107
|
|
4
|
4
|
|
|
4
|
|
20
|
use SQL::OOP::Base; |
|
4
|
|
|
|
|
6
|
|
|
4
|
|
|
|
|
80
|
|
5
|
4
|
|
|
4
|
|
19
|
use base qw(SQL::OOP::Command); |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
1993
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub ARG_DIRECTION() {1} ## no critic |
8
|
|
|
|
|
|
|
sub ARG_TABLE1() {2} ## no critic |
9
|
|
|
|
|
|
|
sub ARG_TABLE2() {3} ## no critic |
10
|
|
|
|
|
|
|
sub ARG_ON() {4} ## no critic |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub ARG_DIRECTION_INNER() {'INNER'} ## no critic |
13
|
|
|
|
|
|
|
sub ARG_DIRECTION_LEFT() {'LEFT'} ## no critic |
14
|
|
|
|
|
|
|
sub ARG_DIRECTION_RIGHT() {'RIGHT'} ## no critic |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
### --- |
17
|
|
|
|
|
|
|
### Get Names of set arguments in array ref |
18
|
|
|
|
|
|
|
### --- |
19
|
|
|
|
|
|
|
sub KEYS { |
20
|
12
|
|
|
12
|
1
|
50
|
return [ARG_TABLE1, ARG_DIRECTION, ARG_TABLE2, ARG_ON]; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
### --- |
24
|
|
|
|
|
|
|
### Get prefixes for each clause in hash ref |
25
|
|
|
|
|
|
|
### --- |
26
|
|
|
|
|
|
|
sub PREFIXES { |
27
|
1
|
|
|
1
|
1
|
2
|
my $self= shift; |
28
|
|
|
|
|
|
|
return { |
29
|
1
|
|
|
|
|
7
|
ARG_TABLE1() => '', |
30
|
|
|
|
|
|
|
ARG_DIRECTION() => '', |
31
|
|
|
|
|
|
|
ARG_TABLE2() => 'JOIN', |
32
|
|
|
|
|
|
|
ARG_ON() => 'ON', |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
### --- |
37
|
|
|
|
|
|
|
### Constructor |
38
|
|
|
|
|
|
|
### --- |
39
|
|
|
|
|
|
|
sub new { |
40
|
1
|
|
|
1
|
1
|
9
|
my ($class, %hash) = @_; |
41
|
1
|
|
|
|
|
11
|
return $class->SUPER::new(%hash); |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
### --- |
45
|
|
|
|
|
|
|
### Set elements |
46
|
|
|
|
|
|
|
### --- |
47
|
|
|
|
|
|
|
sub set { |
48
|
2
|
|
|
2
|
1
|
14
|
my ($class, %hash) = @_; |
49
|
2
|
|
|
|
|
14
|
return $class->SUPER::set(%hash); |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
### --- |
53
|
|
|
|
|
|
|
### Get SQL snippet |
54
|
|
|
|
|
|
|
### --- |
55
|
|
|
|
|
|
|
sub to_string { |
56
|
1
|
|
|
1
|
1
|
2
|
my $self = shift; |
57
|
1
|
|
|
|
|
9
|
local $SQL::OOP::Base::quote_char = $self->quote_char; |
58
|
1
|
|
|
|
|
9
|
return $self->SUPER::to_string(@_); |
59
|
|
|
|
|
|
|
} |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
### --- |
62
|
|
|
|
|
|
|
### Get binded values in array |
63
|
|
|
|
|
|
|
### --- |
64
|
|
|
|
|
|
|
sub bind { |
65
|
0
|
|
|
0
|
1
|
|
return shift->SUPER::bind(@_); |
66
|
|
|
|
|
|
|
} |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
1; |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
__END__ |