Function lmdb_master_sys::mdb_dcmp
source · pub unsafe extern "C" fn mdb_dcmp(
txn: *mut MDB_txn,
dbi: MDB_dbi,
a: *const MDB_val,
b: *const MDB_val,
) -> c_int
Expand description
Compare two data items according to a particular database.
This returns a comparison as if the two items were data items of the specified database. The database must have the #MDB_DUPSORT flag.
§Arguments
txn
(direction in) - A transaction handle returned by #mdb_txn_begin()dbi
(direction in) - A database handle returned by #mdb_dbi_open()a
(direction in) - The first item to compareb
(direction in) - The second item to compare
§Returns
< 0 if a < b, 0 if a == b, > 0 if a > b