Offer a script to switch to WAL mode

This commit is contained in:
Cadence Ember
2023-10-09 13:50:03 +13:00
parent af274ede53
commit 26abd560b0
3 changed files with 9 additions and 1 deletions

6
scripts/wal.js Normal file
View File

@@ -0,0 +1,6 @@
// @ts-check
const sqlite = require("better-sqlite3")
const db = new sqlite("db/ooye.db", {fileMustExist: true})
db.pragma("journal_mode = wal")
db.close()