| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Coteng::DBI; |
|
2
|
2
|
|
|
2
|
|
1741
|
use strict; |
|
|
2
|
|
|
|
|
2
|
|
|
|
2
|
|
|
|
|
50
|
|
|
3
|
2
|
|
|
2
|
|
7
|
use warnings; |
|
|
2
|
|
|
|
|
2
|
|
|
|
2
|
|
|
|
|
49
|
|
|
4
|
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
6
|
use parent qw(DBIx::Sunny); |
|
|
2
|
|
|
|
|
2
|
|
|
|
2
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
package Coteng::DBI::db; |
|
9
|
|
|
|
|
|
|
|
|
10
|
2
|
|
|
2
|
|
118
|
use parent -norequire => 'DBIx::Sunny::db'; |
|
|
2
|
|
|
|
|
4
|
|
|
|
2
|
|
|
|
|
7
|
|
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub __set_comment { |
|
13
|
59
|
|
|
59
|
|
7175
|
my $self = shift; |
|
14
|
59
|
|
|
|
|
45
|
my $query = shift; |
|
15
|
|
|
|
|
|
|
|
|
16
|
59
|
|
|
|
|
45
|
my $trace; |
|
17
|
59
|
|
|
|
|
42
|
my $i = 0; |
|
18
|
59
|
|
|
|
|
334
|
while ( my @caller = caller($i) ) { |
|
19
|
340
|
|
|
|
|
231
|
my $file = $caller[1]; |
|
20
|
340
|
|
|
|
|
300
|
$file =~ s!\*/!*\//!g; |
|
21
|
340
|
|
|
|
|
430
|
$trace = "/* $file line $caller[2] */"; |
|
22
|
340
|
100
|
66
|
|
|
1390
|
last if $caller[0] ne ref($self) && $caller[0] !~ /^(:?DBIx?|DBD|Coteng)\b/; |
|
23
|
281
|
|
|
|
|
1200
|
$i++; |
|
24
|
|
|
|
|
|
|
} |
|
25
|
59
|
|
|
|
|
197
|
$query =~ s! ! $trace !; |
|
26
|
59
|
|
|
|
|
275
|
$query; |
|
27
|
|
|
|
|
|
|
} |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
package Coteng::DBI::st; |
|
30
|
2
|
|
|
2
|
|
440
|
use parent -norequire => 'DBIx::Sunny::st'; |
|
|
2
|
|
|
|
|
4
|
|
|
|
2
|
|
|
|
|
8
|
|
|
31
|
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |