fix: enable WAL mode for sqlite

This commit is contained in:
edde746
2026-03-17 10:31:39 +01:00
parent 0fcdcf3c1f
commit 94aa966f46
+4 -1
View File
@@ -225,6 +225,9 @@ LazyDatabase _openConnection() {
}
}
return NativeDatabase(file);
return NativeDatabase(file, setup: (db) {
db.execute('PRAGMA journal_mode=WAL');
db.execute('PRAGMA synchronous=NORMAL');
});
});
}