fix: run sqlite on background isolate
This commit is contained in:
@@ -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');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user