user => '',
password => '',
connect_info_opts => {
- on_connect_do => 'PRAGMA foreign_keys = ON',
+ on_connect_do => [ 'PRAGMA foreign_keys = ON', 'PRAGMA synchronous = OFF', ]
},
loader_options => { preserve_case => 1 },
data_types => {
AutoCommit => 1,
}
);
+ if ($self->{dsn} =~ /^[^:]+:SQLite:/) {
+ $dbh->do ('PRAGMA synchronous = OFF');
+ }
die "Failed to connect to database: $DBI::errstr" if !$dbh;
unlink($fn);
our $dsn = "dbi:$class:dbname=$fn";
my $dbh = DBI->connect($dsn);
+$dbh->do ('PRAGMA SYNCHRONOUS = OFF');
$dbh->do($_) for (
q|CREATE TABLE foo (
unlink($fn);
our $dsn = "dbi:$class:dbname=$fn";
my $dbh = DBI->connect($dsn);
+$dbh->do('PRAGMA SYNCHRONOUS = OFF');
$dbh->do($_) for (
q|CREATE TABLE foo (
unlink($fn);
our $dsn = "dbi:$class:dbname=$fn";
my $dbh = DBI->connect($dsn);
+$dbh->do('PRAGMA SYNCHRONOUS = OFF');
$dbh->do($_) for (
q|CREATE TABLE foo (
unlink($fn);
our $dsn = "dbi:$class:dbname=$fn";
my $dbh = DBI->connect($dsn);
+$dbh->do('PRAGMA SYNCHRONOUS = OFF');
$dbh->do($_) for (
q|CREATE TABLE foos (