fix: run sqlite on background isolate

This commit is contained in:
edde746
2026-03-25 20:50:35 +01:00
parent f8bfeb0ec6
commit 843faee4c5
+1 -1
View File
@@ -225,7 +225,7 @@ LazyDatabase _openConnection() {
}
}
return NativeDatabase(file, setup: (db) {
return NativeDatabase.createInBackground(file, setup: (db) {
db.execute('PRAGMA journal_mode=WAL');
db.execute('PRAGMA synchronous=NORMAL');
});