(Deprecated) Change the runtime configuration of all user-defined collation sequences
#include <qdb/qdb.h> int qdb_collation( qdb_hdl_t *db, void *data, int nbytes, int reindex );
This function configures all user-defined collation sequences registered for a database. The registered sequences are those listed under the Collation option in the database's configuration object. The setup() function of each collation is invoked with the specified data and nbytes, and any error raised by that function is returned to the client.
The format of the data argument is custom and is based on the implementation of the setup functions. Thus, you can use any data format so long as it's supported by each collation sequence. For instance, you can use strings that store data in a self-documenting format, such as lang=en_US.
If you set data to NULL, QDB resets all collations to their default settings. For details on implementing setup functions, which read this data to configure collation routines, see Collation routines.
QNX Neutrino
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | Yes |