diff options
| author | Andrew Dolgov <noreply@fakecake.org> | 2017-07-04 13:40:36 +0300 |
|---|---|---|
| committer | Andrew Dolgov <noreply@fakecake.org> | 2017-07-04 13:40:36 +0300 |
| commit | 00ff14efa794f2ada3a8dbe51fc4ef2951cfe4da (patch) | |
| tree | 688b2ea46bce18e5fdb0f0a9a2e8b7a69d4beb3f | |
| parent | dd7c9ed183d8ec3b1ec49ba18535b492062c8820 (diff) | |
| download | the-epube-00ff14efa794f2ada3a8dbe51fc4ef2951cfe4da.tar.gz the-epube-00ff14efa794f2ada3a8dbe51fc4ef2951cfe4da.tar.xz | |
sqlite: enable WAL
| -rw-r--r-- | db.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/db.php b/db.php index 1dc8ce0..1654fe5 100644 --- a/db.php +++ b/db.php @@ -6,6 +6,7 @@ class Db { private function __construct() { $this->dbh = new SQLite3(__DIR__ . "/" . SCRATCH_DB); $this->dbh->busyTimeout(30*1000); + $this->dbh->exec('PRAGMA journal_mode = wal;'); } public static function get() { |
