CppDB
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Member Functions
cppdb::backend::driver Class Reference

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>

Inheritance diagram for cppdb::backend::driver:
cppdb::ref_counted cppdb::backend::loadable_driver cppdb::backend::static_driver

List of all members.

Public Member Functions

virtual bool in_use ()=0
virtual connectionopen (connection_info const &cs)=0
virtual connectionconnect (connection_info const &cs)

Detailed Description

This class represents a driver that creates connections for given connection string, custom drivers can be are installed using this class.


Member Function Documentation

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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator