line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package SQL::OOP::Delete; |
2
|
1
|
|
|
1
|
|
424
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
32
|
|
3
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
19
|
|
4
|
1
|
|
|
1
|
|
3
|
use SQL::OOP::Base; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
15
|
|
5
|
1
|
|
|
1
|
|
536
|
use SQL::OOP::Where; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
26
|
|
6
|
1
|
|
|
1
|
|
5
|
use base qw(SQL::OOP::Command); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
434
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub ARG_TABLE() {1} ## no critic |
9
|
|
|
|
|
|
|
sub ARG_WHERE() {2} ## no critic |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
### --- |
12
|
|
|
|
|
|
|
### Get Names of set arguments in array ref |
13
|
|
|
|
|
|
|
### --- |
14
|
|
|
|
|
|
|
sub KEYS { |
15
|
18
|
|
|
18
|
1
|
63
|
return [ARG_TABLE, ARG_WHERE]; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
### --- |
19
|
|
|
|
|
|
|
### Get prefixes for each clause in hash ref |
20
|
|
|
|
|
|
|
### --- |
21
|
|
|
|
|
|
|
sub PREFIXES { |
22
|
|
|
|
|
|
|
return { |
23
|
2
|
|
|
2
|
1
|
9
|
ARG_TABLE() => 'DELETE FROM', |
24
|
|
|
|
|
|
|
ARG_WHERE() => 'WHERE', |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
### --- |
29
|
|
|
|
|
|
|
### Constructor |
30
|
|
|
|
|
|
|
### --- |
31
|
|
|
|
|
|
|
sub new { |
32
|
2
|
|
|
2
|
1
|
2592
|
my ($class, %hash) = @_; |
33
|
2
|
|
|
|
|
19
|
return $class->SUPER::new(%hash); |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
### --- |
37
|
|
|
|
|
|
|
### Set elements |
38
|
|
|
|
|
|
|
### --- |
39
|
|
|
|
|
|
|
sub set { |
40
|
6
|
|
|
6
|
1
|
20
|
my ($class, %hash) = @_; |
41
|
6
|
|
|
|
|
26
|
return $class->SUPER::set(%hash); |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
### --- |
45
|
|
|
|
|
|
|
### Get SQL snippet |
46
|
|
|
|
|
|
|
### --- |
47
|
|
|
|
|
|
|
sub to_string { |
48
|
2
|
|
|
2
|
1
|
8
|
my $self = shift; |
49
|
2
|
|
|
|
|
14
|
local $SQL::OOP::Base::quote_char = $self->quote_char; |
50
|
2
|
|
|
|
|
14
|
return $self->SUPER::to_string(@_); |
51
|
|
|
|
|
|
|
} |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
### --- |
54
|
|
|
|
|
|
|
### Get binded values in array |
55
|
|
|
|
|
|
|
### --- |
56
|
|
|
|
|
|
|
sub bind { |
57
|
1
|
|
|
1
|
1
|
10
|
return shift->SUPER::bind(@_); |
58
|
|
|
|
|
|
|
} |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
1; |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
__END__ |