qdb_setoption()

Set an option for a database connection

Synopsis:

#include <qdb/qdb.h>

int qdb_setoption( qdb_hdt_t *hdl,
                   int option,
                   int value );

Arguments:

hdl
A pointer to the database handle to set the option for.
option
The option to set. It can be one of:
value
The value to set the option to: either 0 ("off") or 1 ("on").

Library:

qdb

Description:

This function sets options for the database connection hdl. By default, all of these options are on.

Returns:

0
Success. The previous value for option is returned.
-1
The option specified isn't supported (errno is set).

Classification:

QNX Neutrino

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

qdb_column_index(), qdb_getresult(), qdb_last_insert_rowid(), qdb_rowchanges()