cancelTransaction method
bool
cancelTransaction(
- Transaction transaction,
- C? connection,
- Object? error,
- StackTrace? stackTrace,
override
Default for the openTransactionWithPool adapters: nothing to cancel, the driver rolls back the transaction when its callback throws.
Typed bool (synchronous), as the MySQL and SQLite overrides it
replaces were declared.
Implementation
@override
bool cancelTransaction(
Transaction transaction,
C? connection,
Object? error,
StackTrace? stackTrace,
) => true;