line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::Database::Driver::SQLite; |
2
|
|
|
|
|
|
|
$Test::Database::Driver::SQLite::VERSION = '1.113'; |
3
|
4
|
|
|
4
|
|
21
|
use strict; |
|
4
|
|
|
|
|
6
|
|
|
4
|
|
|
|
|
166
|
|
4
|
4
|
|
|
4
|
|
21
|
use warnings; |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
127
|
|
5
|
|
|
|
|
|
|
|
6
|
4
|
|
|
4
|
|
23
|
use Test::Database::Driver; |
|
4
|
|
|
|
|
6
|
|
|
4
|
|
|
|
|
272
|
|
7
|
|
|
|
|
|
|
our @ISA = qw( Test::Database::Driver ); |
8
|
|
|
|
|
|
|
|
9
|
4
|
|
|
4
|
|
22
|
use DBI; |
|
4
|
|
|
|
|
6
|
|
|
4
|
|
|
|
|
163
|
|
10
|
4
|
|
|
4
|
|
23
|
use File::Spec; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
767
|
|
11
|
|
|
|
|
|
|
|
12
|
29
|
|
|
29
|
1
|
314
|
sub is_filebased {1} |
13
|
|
|
|
|
|
|
|
14
|
4
|
|
|
4
|
|
19
|
sub _version { return DBI->connect( $_[0]->driver_dsn() )->{sqlite_version}; } |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub dsn { |
17
|
2
|
|
|
2
|
1
|
8
|
my ( $self, $dbname ) = @_; |
18
|
2
|
|
|
|
|
12
|
return $self->make_dsn( |
19
|
|
|
|
|
|
|
dbname => File::Spec->catdir( $self->base_dir(), $dbname ) ); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub drop_database { |
23
|
1
|
|
|
1
|
1
|
451
|
my ( $self, $dbname ) = @_; |
24
|
1
|
|
|
|
|
15
|
my $dbfile = File::Spec->catfile( $self->base_dir(), $dbname ); |
25
|
1
|
|
|
|
|
156
|
unlink $dbfile; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
'SQLite'; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |