This class represents a driver that creates connections for given connection string, custom drivers can be are installed using this class. More...
#include <cppdb/backend.h>
Public Member Functions | |
virtual bool | in_use ()=0 |
virtual connection * | open (connection_info const &cs)=0 |
virtual connection * | connect (connection_info const &cs) |
This class represents a driver that creates connections for given connection string, custom drivers can be are installed using this class.
virtual connection* cppdb::backend::driver::connect | ( | connection_info const & | cs | ) | [virtual] |
Create a connection object, generally calls open() but may add some information (as registering objects) and unregistering them
Reimplemented in cppdb::backend::loadable_driver.
virtual bool cppdb::backend::driver::in_use | ( | ) | [pure virtual] |
Return true if the driver in use (i.e. if there is any open connection exist (connection object) so it can't be removed from the driver
Implemented in cppdb::backend::static_driver, and cppdb::backend::loadable_driver.
virtual connection* cppdb::backend::driver::open | ( | connection_info const & | cs | ) | [pure virtual] |
Create a connection object - should be implemented by driver
Implemented in cppdb::backend::static_driver.