cancelTransaction method
bool
cancelTransaction(
- Transaction transaction,
- DBSQLMemoryAdapterContext? connection,
- Object? error,
- StackTrace? stackTrace,
override
Implementation
@override
bool cancelTransaction(
Transaction transaction,
DBSQLMemoryAdapterContext? connection,
Object? error,
StackTrace? stackTrace) {
if (connection == null) return true;
_openTransactionsContexts.remove(connection);
_rollbackTables(
connection.tablesVersions, connection.tablesIndexesVersions);
// ignore: discarded_futures
disposePoolElement(connection);
return true;
}