[core] Use WAL for sqlite3

fix #628
This commit is contained in:
devlikepro committed 2024-11-06 15:46:55 +07:00
1 parent 84ac1d8cfc
commit 1444155c09
1 file changed
+1
+1
View File
@@ -63,6 +63,7 @@ export class LocalStoreCore extends LocalStore {
const engineDir = this.getEngineDirectory();
const database = path.join(engineDir, 'waha.sqlite3');
this.db = new Database(database);
this.db.pragma('journal_mode = WAL;');
}
return this.db;
}