diff --git a/lib/_data_ingestion/open_local_db.dart b/lib/_data_ingestion/open_local_db.dart index f9c7dff..ac56def 100644 --- a/lib/_data_ingestion/open_local_db.dart +++ b/lib/_data_ingestion/open_local_db.dart @@ -19,19 +19,18 @@ Future openLocalDb({ throw Exception('JADB_PATH does not exist: $jadbPath'); } - final db = - await createDatabaseFactoryFfi().openDatabase( - jadbPath, - options: OpenDatabaseOptions( - onConfigure: (db) async { - if (walMode) { - await db.execute('PRAGMA journal_mode = WAL'); - } - await db.execute('PRAGMA foreign_keys = ON'); - }, - readOnly: !readWrite, - ), - ); + final db = await createDatabaseFactoryFfi().openDatabase( + jadbPath, + options: OpenDatabaseOptions( + onConfigure: (db) async { + if (walMode) { + await db.execute('PRAGMA journal_mode = WAL'); + } + await db.execute('PRAGMA foreign_keys = ON'); + }, + readOnly: !readWrite, + ), + ); if (verifyTablesExist) { await db.jadbVerifyTables();