Skip to main content

obj_txn_begin_read

Function obj_txn_begin_read 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn obj_txn_begin_read( db: *mut obj_db_t, out_txn: *mut *mut obj_read_txn_t, ) -> obj_error_t
Expand description

Begin a read transaction against db. Pins a snapshot at the current writer LSN.

ยงSafety

  • db must be a valid handle returned by obj_open*.
  • out_txn must be a writable obj_read_txn_t *.