handleCloseDatabase method
Handle close database.
Implementation
Future handleCloseDatabase() async {
var database = getDatabaseOrThrow();
if (database.singleInstance) {
ffiSingleInstanceDbs.remove(database.path);
// Handle hot-restart for single instance
// The dart code is killed but the native code remains
// Remove the database from our cache
tracker.markClosed(database._ffiDb);
}
database.close();
}