[][src]Function lmdb_sys::mdb_dcmp

pub unsafe extern "C" fn mdb_dcmp(
    txn: *mut MDB_txn,
    dbi: MDB_dbi,
    a: *const MDB_val,
    b: *const MDB_val
) -> c_int

@brief 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. @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