lib/_data_ingestion: enable WAL

This commit is contained in:
2025-05-15 22:31:54 +02:00
parent 30d8160698
commit f278b34415

View File

@@ -41,8 +41,9 @@ Future<Database> openLocalDb({
).openDatabase(
jadbPath,
options: OpenDatabaseOptions(
onOpen: (db) {
db.execute("PRAGMA foreign_keys = ON");
onConfigure: (db) async {
await db.execute("PRAGMA journal_mode = WAL");
await db.execute("PRAGMA foreign_keys = ON");
},
readOnly: !readWrite,
),