mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/lyswhut/lx-music-desktop.git
synced 2026-09-20 08:04:00 +08:00
为数据库启用 WAL 模式
This commit is contained in:
@@ -36,6 +36,7 @@ export const init = (lxDataPath: string): boolean | null => {
|
||||
initTables(db)
|
||||
dbFileExists = false
|
||||
}
|
||||
db.pragma('journal_mode = WAL')
|
||||
|
||||
if (dbFileExists) migrateData(db)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user