Offer a script to switch to WAL mode
This commit is contained in:
parent
af274ede53
commit
26abd560b0
3 changed files with 9 additions and 1 deletions
6
scripts/wal.js
Normal file
6
scripts/wal.js
Normal 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()
|
Loading…
Add table
Add a link
Reference in a new issue