chickadee » lmdb-lolevel » mdb-dcmp

mdb-dcmp txn dbi a bprocedure

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.

txn
A transaction handle returned by (mdb-txn-begin)
dbi
A database handle returned by (mdb-dbi-open)
a
The first item to compare (blob)
b
The second item to compare (blob)

Returns: < 0 if a < b, 0 if a == b, > 0 if a > b