You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In close() function of database.dart file, need to set null for current database before closing it like this:
Future close() async {
final db = await instance.database;
_database = null;
await db.close();
}
The text was updated successfully, but these errors were encountered:
thank you very much, my case is switching between different sqflite .db files, so I need to close the current before open the new one, but I got the error Unhandled Exception: DatabaseException(error database_closed) after close
In close() function of database.dart file, need to set null for current database before closing it like this:
Future close() async {
final db = await instance.database;
_database = null;
await db.close();
}
The text was updated successfully, but these errors were encountered: