odbx_get_option man page
odbx_get_option — Query backend for implemented options odbx_get_option() asks the backend module associated to The first parameter There are several odbx_get_option() returns odbx_bind(), odbx_error(), odbx_error_type(), odbx_init(), odbx_set_option()
(odbx_t*handle, unsigned int option, void* value);
handle by odbx_init() for implemented options and their current values. This function can be used at every stage as long as
handle points to a valid connection object. Its primary use is to find out supported features of the backend module and to enable them with odbx_set_option() before the connection to the database server is established by calling odbx_bind().
handle is the connection object created and returned by odbx_init() which becomes invalid as soon as it was supplied to odbx_finish().
option values defined as named constants in the odbx.h header file. A few of them are for informational purpose only while most of the options can also be set to different
option values by odbx_set_option() to change the behavior of the backend module. The available options are:
value must be a pointer to an integer variable where the backend module will store the result for the supplied option. If it's not stated otherwise, the value assigned to the
value parameter by odbx_get_option() will be of boolean nature and therefore is
ODBX_ENABLE for a supported option or
ODBX_DISABLE for an option which isn't supported.
ODBX_ERR_SUCCESS, or an error code whose value is less than zero if one of the operations couldn't be completed successfully. Possible error codes are listed in the error section and they can be feed to odbx_error() and odbx_error_type() to get further details.
option parameter isn't one of the values listed in this manual. The content of
value remains unchanged if this error occurs
odbx_get_option() asks the backend module associated to
The first parameter
There are several
odbx_bind(), odbx_error(), odbx_error_type(), odbx_init(), odbx_set_option()