lib/_data_ingestion: enable WAL
This commit is contained in:
@@ -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,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user