line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Data::Model::Driver::DBI::DBD; |
2
|
95
|
|
|
95
|
|
573
|
use strict; |
|
95
|
|
|
|
|
209
|
|
|
95
|
|
|
|
|
3716
|
|
3
|
95
|
|
|
95
|
|
506
|
use warnings; |
|
95
|
|
|
|
|
175
|
|
|
95
|
|
|
|
|
2868
|
|
4
|
|
|
|
|
|
|
|
5
|
94
|
|
|
94
|
|
511
|
use Carp (); |
|
94
|
|
|
|
|
164
|
|
|
94
|
|
|
|
|
23435
|
|
6
|
|
|
|
|
|
|
$Carp::Internal{(__PACKAGE__)}++; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new { |
9
|
50
|
|
|
50
|
0
|
199
|
my($class, $dbd, %args) = @_; |
10
|
50
|
|
|
|
|
172
|
my $dbd_class = "$class\::$dbd"; |
11
|
50
|
|
|
48
|
|
4688
|
eval "use $dbd_class;"; ## no critic |
|
48
|
|
|
|
|
44585
|
|
|
48
|
|
|
|
|
148
|
|
|
48
|
|
|
|
|
995
|
|
12
|
50
|
50
|
|
|
|
364
|
Carp::croak $@ if $@; |
13
|
50
|
|
|
|
|
434
|
bless { %args }, $dbd_class; |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
0
|
|
|
0
|
0
|
0
|
sub fetch_last_id {} |
17
|
0
|
|
|
0
|
0
|
0
|
sub bind_param_attributes {} |
18
|
4
|
|
|
4
|
0
|
23
|
sub can_replace { 1 } |
19
|
|
|
|
|
|
|
|
20
|
0
|
|
|
0
|
0
|
0
|
sub has_support { 0 } |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub _as_sql_hook { |
23
|
1370
|
|
|
1370
|
|
1567
|
my $self = shift; |
24
|
1370
|
|
|
|
|
1351
|
my $c = shift; |
25
|
1370
|
|
|
|
|
1793
|
my $method = shift; |
26
|
|
|
|
|
|
|
|
27
|
1370
|
|
|
|
|
3872
|
$method =~ s/^as_//; |
28
|
1370
|
100
|
|
|
|
7393
|
if (my $code = $self->can("_as_sql_$method")) { |
29
|
710
|
|
|
|
|
8037
|
return $code->($self, $c, @_); |
30
|
|
|
|
|
|
|
} |
31
|
660
|
|
|
|
|
2348
|
return; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |