为数据库启用 WAL 模式

pull/2379/head
lyswhut 2025-05-02 18:27:48 +08:00
parent 6df6eefd3d
commit 91e806a619
1 changed files with 1 additions and 0 deletions

View File

@ -36,6 +36,7 @@ export const init = (lxDataPath: string): boolean | null => {
initTables(db)
dbFileExists = false
}
db.pragma('journal_mode = WAL')
if (dbFileExists) migrateData(db)