mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-20 09:32:19 +00:00
fix: add WAL checkpoint on database open (#13633)
This commit is contained in:
parent
575f2cf2a5
commit
67c985ce82
1 changed files with 1 additions and 0 deletions
|
|
@ -74,6 +74,7 @@ export namespace Database {
|
|||
sqlite.run("PRAGMA busy_timeout = 5000")
|
||||
sqlite.run("PRAGMA cache_size = -64000")
|
||||
sqlite.run("PRAGMA foreign_keys = ON")
|
||||
sqlite.run("PRAGMA wal_checkpoint(PASSIVE)")
|
||||
|
||||
const db = drizzle({ client: sqlite, schema })
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue