cancelTransaction method

  1. @override
bool cancelTransaction(
  1. Transaction transaction,
  2. C? connection,
  3. Object? error,
  4. 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;