mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 14:19:10 -04:00
14 lines
450 B
Perl
14 lines
450 B
Perl
use Test;
|
|
BEGIN { plan tests => 5 }
|
|
use DBI;
|
|
my $dbh = DBI->connect("dbi:SQLite:dbname=foo", "", "");
|
|
ok($dbh);
|
|
ok($dbh->{sqlite_version});
|
|
print "# sqlite_version=$dbh->{sqlite_version}\n";
|
|
ok($dbh->func('busy_timeout'));
|
|
print "# sqlite_busy_timeout=", $dbh->func('busy_timeout'), "\n";
|
|
ok($dbh->func(5000, 'busy_timeout'));
|
|
ok($dbh->func('busy_timeout'), 5000);
|
|
print "# sqlite_busy_timeout=", $dbh->func('busy_timeout'), "\n";
|
|
$dbh->disconnect;
|
|
|