Database Independent Abstraction Layer for C: libdbi Programmer's Guide | ||
---|---|---|
Prev | Chapter 4. libdbi API Reference | Next |
Locates all available database drivers and loads them into memory.
driverdir: The directory to search for drivers. If NULL, DBI_DRIVER_DIR (defined at compile time) will be used instead.
The number of drivers successfully loaded, or -1 if there was an error.
Frees all loaded drivers and terminates the DBI system. You should close each connection you opened before shutting down, but libdbi will clean up after you if you don't.
Requests the version of libdbi as a read-only string. The calling program must not attempt to free the returned string.
A string containing the library's name and version.