beginTransaction method

  1. @protected
void beginTransaction()

Begins a transaction and creates a savepoint.

Implementation

@protected
void beginTransaction() {
  checkState(_txStatus == _TxStatus.txNone);
  try {
    _beginTransaction!.execute();
    _savepoint!.execute();
    _txStatus = _TxStatus.txReady;
  } catch (_) {
    _txStatus = _TxStatus.txFailed;
    rethrow;
  }
}