qdb_parameters()

Get or set database connection parameters

Synopsis:

#include <qdb/qdb.h>

int qdb_parameters( qdb_hdl_t *db,
                    int mask,
                    int bits );

Arguments:

db
A pointer to the database handle.
mask
A bitmask of the bits you want to set or unset.
bits
The bits you want to set. If a bit is in mask but not in bits, it's knocked down.

Library:

qdb

Description:

This function queries or modifies the database connection parameters. You can set or unset the QDB_CONN_BLOCK_FOREVER and QDB_CONN_STMT_ASYNC parameters (see the description of the flags argument passed to qdb_connect() for a description of these flags). You can't change the QDB_CONN_DFLT_SHARE flag. The function returns the value of the old flags, so they can be temporarily changed and restored.

Returns:

>-1
The value of the old flags.
-1
An error occurred.

Classification:

QNX Neutrino

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

qdb_connect()