pub unsafe extern "C" fn mdb_cmp(
txn: *mut MDB_txn,
dbi: MDB_dbi,
a: *const MDB_val,
b: *const MDB_val,
) -> c_int
Expand description
@brief Compare two data items according to a particular database.
This returns a comparison as if the two data items were keys in the specified database. @param[in] txn A transaction handle returned by #mdb_txn_begin() @param[in] dbi A database handle returned by #mdb_dbi_open() @param[in] a The first item to compare @param[in] b The second item to compare @return < 0 if a < b, 0 if a == b, > 0 if a > b