mdb_txn_abort function

void mdb_txn_abort(
  1. Pointer<MDB_txn> txn
)

@brief Abandon all the operations of the transaction instead of saving them.

The transaction handle is freed. It and its cursors must not be used again after this call, except with #mdb_cursor_renew(). @note Earlier documentation incorrectly said all cursors would be freed. Only write-transactions free cursors. @paramin txn A transaction handle returned by #mdb_txn_begin()

Implementation

@ffi.FfiNative<ffi.Void Function(ffi.Pointer<MDB_txn>)>('mdb_txn_abort')
external void mdb_txn_abort(
  ffi.Pointer<MDB_txn> txn,
);