Update database.dart

This commit is contained in:
Moshe Dicker
2025-02-26 09:22:48 -05:00
committed by GitHub
parent 6bbf0f9ab0
commit 9d57869ad1
+1 -1
View File
@@ -35,7 +35,7 @@ class AppDatabase extends _$AppDatabase {
// After generating code, this class needs to define a `schemaVersion` getter
// and a constructor telling drift where the database should be stored.
// These are described in the getting started guide: https://drift.simonbinder.eu/setup/
AppDatabase() : super(_openConnection());
AppDatabase([QueryExecutor? executor]) : super(executor ?? _openConnection());
@override
int get schemaVersion => 1;