beginTransactionInContext method

  1. @override
TransactionExecutor beginTransactionInContext(
  1. _BaseExecutor context
)
inherited

Implementation

@override
// ignore: library_private_types_in_public_api
TransactionExecutor beginTransactionInContext(_BaseExecutor context) {
  switch (delegate.transactionDelegate) {
    case NoTransactionDelegate noTransactionDelegate:
      return _StatementBasedTransactionExecutor(
          this, context, noTransactionDelegate);
    case SupportedTransactionDelegate supported:
      return _WrappingTransactionExecutor(this, supported);
  }
}