Skip to content

Commit

Permalink
Set the journal mode to WAL
Browse files Browse the repository at this point in the history
  • Loading branch information
austinwbest committed Nov 11, 2024
1 parent 67595be commit cc1f2ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions root/app/www/public/classes/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public function __construct($dbName)
public function connect($dbFile)
{
$db = new SQLite3($dbFile, SQLITE3_OPEN_CREATE | SQLITE3_OPEN_READWRITE);
$db->exec('PRAGMA journal_mode = WAL;');
$this->db = $db;
}

Expand Down

0 comments on commit cc1f2ce

Please sign in to comment.