mdb_dcmp function

int mdb_dcmp(
  1. Pointer<MDB_txn> txn,
  2. int dbi,
  3. Pointer<MDB_val> a,
  4. Pointer<MDB_val> b,
)

@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. @paramin txn A transaction handle returned by #mdb_txn_begin() @paramin dbi A database handle returned by #mdb_dbi_open() @paramin a The first item to compare @paramin b The second item to compare @return < 0 if a < b, 0 if a == b, > 0 if a > b

Implementation

@ffi.FfiNative<
    ffi.Int Function(ffi.Pointer<MDB_txn>, MDB_dbi, ffi.Pointer<MDB_val>,
        ffi.Pointer<MDB_val>)>('mdb_dcmp')
external int mdb_dcmp(
  ffi.Pointer<MDB_txn> txn,
  int dbi,
  ffi.Pointer<MDB_val> a,
  ffi.Pointer<MDB_val> b,
);