cancelTransaction method
bool
cancelTransaction(
- Transaction transaction,
- DBObjectMemoryAdapterContext? connection,
- Object? error,
- StackTrace? stackTrace,
override
Implementation
@override
bool cancelTransaction(
Transaction transaction,
DBObjectMemoryAdapterContext? connection,
Object? error,
StackTrace? stackTrace) {
if (connection == null) return true;
_openTransactionsContexts.remove(connection);
_rollbackTables(connection.tablesVersions);
return true;
}