rollback method

void rollback()

Discard buffered changes and end this transaction.

Implementation

void rollback() {
  _checkActive();
  _finished = true;
  if (!ns_database_txn_rollback(_db, _txn)) {
    throw StateError('ns_database_txn_rollback failed');
  }
}