line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package DBIx::ThinSQL::Driver::SQLite; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
37
|
|
4
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
176
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our @ISA = ('DBIx::ThinSQL::Driver'); |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub savepoint { |
9
|
2
|
|
|
2
|
0
|
3
|
my $self = shift; |
10
|
2
|
|
|
|
|
3
|
my $dbh = shift; |
11
|
2
|
|
|
|
|
3
|
my $name = shift; |
12
|
2
|
|
|
|
|
10
|
$dbh->do( 'SAVEPOINT ' . $name ); |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub release { |
16
|
1
|
|
|
1
|
0
|
2
|
my $self = shift; |
17
|
1
|
|
|
|
|
2
|
my $dbh = shift; |
18
|
1
|
|
|
|
|
25
|
my $name = shift; |
19
|
1
|
|
|
|
|
6
|
$dbh->do( 'RELEASE ' . $name ); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub rollback_to { |
23
|
1
|
|
|
1
|
0
|
2
|
my $self = shift; |
24
|
1
|
|
|
|
|
2
|
my $dbh = shift; |
25
|
1
|
|
|
|
|
2
|
my $name = shift; |
26
|
1
|
|
|
|
|
5
|
$dbh->do( 'ROLLBACK TO ' . $name ); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |