line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package EntityModel::Query::InsertField; |
2
|
|
|
|
|
|
|
{ |
3
|
|
|
|
|
|
|
$EntityModel::Query::InsertField::VERSION = '0.102'; |
4
|
|
|
|
|
|
|
} |
5
|
|
|
|
|
|
|
use EntityModel::Class { |
6
|
16
|
|
|
|
|
144
|
'_isa' => [qw(EntityModel::Query::Field)], |
7
|
|
|
|
|
|
|
'value' => 'string', |
8
|
16
|
|
|
16
|
|
14210
|
}; |
|
16
|
|
|
|
|
31
|
|
9
|
16
|
|
|
16
|
|
8198
|
no if $] >= 5.017011, warnings => "experimental::smartmatch"; |
|
16
|
|
|
|
|
34
|
|
|
16
|
|
|
|
|
135
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head1 NAME |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
EntityModel::Query::InsertField - field list for INSERT statement |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=head1 VERSION |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
version 0.102 |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head1 SYNOPSIS |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
See L. |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head1 DESCRIPTION |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
See L. |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=cut |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 METHODS |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=cut |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub new { |
34
|
4
|
|
|
4
|
1
|
655
|
my $class = shift; |
35
|
4
|
|
|
|
|
15
|
my $self = bless { }, $class; |
36
|
4
|
|
|
|
|
11
|
my $args = shift; |
37
|
4
|
|
|
|
|
6
|
my @spec; |
38
|
4
|
50
|
|
|
|
16
|
if(ref $args ~~ 'HASH') { |
|
|
0
|
|
|
|
|
|
39
|
4
|
|
|
|
|
18
|
push @spec, %$args; |
40
|
|
|
|
|
|
|
} elsif(ref $args ~~ 'ARRAY') { |
41
|
0
|
|
|
|
|
0
|
push @spec, @$args; |
42
|
|
|
|
|
|
|
} else { |
43
|
0
|
|
|
|
|
0
|
die "no idea what $args is"; |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
|
46
|
4
|
|
|
|
|
18
|
while(@spec) { |
47
|
8
|
|
|
|
|
76
|
my $k = shift(@spec); |
48
|
8
|
|
|
|
|
13
|
my $v = shift(@spec); |
49
|
8
|
|
|
|
|
43
|
$self->$k($v); |
50
|
|
|
|
|
|
|
} |
51
|
4
|
|
|
|
|
58
|
return $self; |
52
|
|
|
|
|
|
|
} |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
1; |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
__END__ |