#include <db_cxx.h>typedef int (*bt_compare_fcn)(const DBT *, const DBT *); void DbInfo::set_bt_compare(bt_compare_fcn);
The data and size fields of the Dbt are the only fields that may be used for the purposes of this comparison.
If no comparison function is specified, the keys are compared lexically, with shorter keys collating before longer keys.