diff --git a/lib/src/fa_flutter_sembast/base/sembast_app_db.dart b/lib/src/fa_flutter_sembast/base/sembast_app_db.dart index 610efa7..9e0865d 100644 --- a/lib/src/fa_flutter_sembast/base/sembast_app_db.dart +++ b/lib/src/fa_flutter_sembast/base/sembast_app_db.dart @@ -86,4 +86,8 @@ abstract class SembastHelper { /// Delete records Future> deleteList(RecordsRef recordsRef); + + /// Get the database instance. + @Deprecated("Temporary fix to get the database instance.") + Database getDb(); } diff --git a/lib/src/fa_flutter_sembast/client/sembast_app_db_impl.dart b/lib/src/fa_flutter_sembast/client/sembast_app_db_impl.dart index 86bf894..6637765 100644 --- a/lib/src/fa_flutter_sembast/client/sembast_app_db_impl.dart +++ b/lib/src/fa_flutter_sembast/client/sembast_app_db_impl.dart @@ -114,4 +114,9 @@ class SembastHelperImpl implements SembastHelper { final values = await recordsRef.delete(_db); return values; } + + @override + Database getDb() { + return _db; + } }