commit method

void commit()

Persist buffered changes and end this transaction.

Implementation

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