3.2. Driver Infrastructure

3.2.1. dbi_driver_list

dbi_driver dbi_driver_list(dbi_driver Current)

Enumerates all loaded drivers. If Current is NULL, the first available driver will be returned. If Current is a valid driver, the next available driver will be returned.

3.2.2. dbi_driver_open

dbi_driver dbi_driver_open(const char *name)

Locate the driver with the specified name.

3.2.3. dbi_driver_is_reserved_word

int dbi_driver_is_reserved_word(dbi_driver Driver, const char *word)

Looks for the specified word in the list of reserved words. The result of this function may vary between databases. Case does not matter.

3.2.4. dbi_driver_specific_function

void *dbi_driver_specific_function(dbi_driver Driver, const char *name)

Returns a function pointer to the specifed custom function. This can be used to access database-specific functionality, but it will restrict your code to one particular database, lessening the benefits of using libdbi.

3.2.5. dbi_driver_quote_string

int dbi_driver_quote_string(dbi_driver Driver, char **orig)

Encloses the target string in the types of quotes that the database expects, and escapes any special characters. The original string will be freed and will point to a newly allocated one (which you still must free on your own).

3.2.6. Driver Information