Change the runtime configuration of user-defined collation sequences
#include <qdb/qdb.h> int qdb_collation( qdb_hdl_t *db, void *data, int nbytes, int reindex );
This function is used to configure special user-defined collation sequences attached to the database, defined by Collation= entries in the configuration file. The setup() function of each entry is invoked with the specified data and nbytes, and any error raised by that function is returned to the client. Otherwise, the collation routine is expected to use the data in a proprietary manner to configure itself to a new sort order. The collation routine and the client must both know what format this configuration data is in. You might consider use strings as a simple self-documenting extensible format (e.g. getsubopt() style).