Get or set database connection parameters
#include <qdb/qdb.h> int qdb_parameters( qdb_hdl_t *db, int mask, int bits );
This function queries or modifies the parameters for the specified database connection. You can set or unset the QDB_CONN_NONBLOCKING and QDB_CONN_STMT_ASYNC bits (see the flags argument for qdb_connect() for details about these settings). You can't change the QDB_CONN_DFLT_SHARE bit.
The function returns the previous bitmask (i.e., parameter settings), so the parameter settings can be temporarily changed and later restored.
QNX Neutrino
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | Yes |