Create a static driver using connection function (usable for statically linking drivers). More...
#include <cppdb/backend.h>
Public Types | |
typedef cppdb_backend_connect_function * | connect_function_type |
Public Member Functions | |
static_driver (connect_function_type c) | |
bool | in_use () |
backend::connection * | open (connection_info const &ci) |
Create a static driver using connection function (usable for statically linking drivers).
Typedef of the function pointer that is used for creation of connection objects.
Create a new driver that creates connection using function c
bool cppdb::backend::static_driver::in_use | ( | ) | [virtual] |
Always returns true as this driver cannot be unloaded
Implements cppdb::backend::driver.
backend::connection* cppdb::backend::static_driver::open | ( | connection_info const & | ci | ) | [virtual] |
Create new connection - basically calls the function to create the object
Implements cppdb::backend::driver.