line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
543
|
use 5.006; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
34
|
|
2
|
1
|
|
|
1
|
|
4
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
28
|
|
3
|
1
|
|
|
1
|
|
4
|
no warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
160
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package DBIx::Simple::Concrete; |
6
|
|
|
|
|
|
|
$DBIx::Simple::Concrete::VERSION = '1.001'; |
7
|
|
|
|
|
|
|
# ABSTRACT: monkey-patch DBIx::Simple to use SQL::Concrete |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
BEGIN { |
10
|
1
|
|
|
1
|
|
530
|
require SQL::Concrete; |
11
|
1
|
|
|
|
|
4464
|
require DBIx::Simple; |
12
|
1
|
|
|
|
|
620
|
require Import::Into; |
13
|
1
|
50
|
|
|
|
3820
|
die 'Too late to patch DBIx::Simple' if DBIx::Simple->can( 'cquery' ); |
14
|
|
|
|
|
|
|
*DBIx::Simple::cquery = sub { |
15
|
1
|
|
|
1
|
|
17
|
use warnings; # limited scope to avoid "Subroutine redefined" |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
72
|
|
16
|
1
|
|
|
1
|
|
859
|
my $self = shift; |
17
|
1
|
|
|
|
|
9
|
return $self->query( SQL::Concrete::Renderer->new->render( @_ ) ); |
18
|
1
|
|
|
|
|
75
|
}; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
1
|
|
|
1
|
|
1140
|
sub import { shift; SQL::Concrete->import::into( scalar caller, @_ ) } |
|
1
|
|
|
|
|
9
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__END__ |