summaryrefslogtreecommitdiff
path: root/db.php
diff options
context:
space:
mode:
Diffstat (limited to 'db.php')
-rw-r--r--db.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/db.php b/db.php
index e5c924c..6e28a91 100644
--- a/db.php
+++ b/db.php
@@ -10,6 +10,7 @@ class Db {
die("Unable to initialize database driver (SQLite): $e");
}
//$this->dbh->busyTimeout(30*1000);
+ $this->dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$this->dbh->query('PRAGMA journal_mode = wal;');
}