chickadee » lmdb-lolevel » mdb-cmp

mdb-cmp txn dbi a bprocedure

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.

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