- 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.
- A transaction handle returned by (mdb-txn-begin)
- A database handle returned by (mdb-dbi-open)
- The first item to compare (blob)
- The second item to compare (blob)
Returns: < 0 if a < b, 0 if a == b, > 0 if a > b