#include <CDB.h>
Public Member Functions | |
| CDBconnection (CDB *tDB, const CDBstring &conn_str) | |
| (Deprecated) Constructor | |
| CDBconnection (CDB *tDB) | |
| Default initialization constructor. | |
| CDBconnection (CDBconnection &c) | |
| Copy-constructor. | |
| int | Connect (const CDBstring &conn_str) |
| Connect to database. | |
| void | Disconnect () |
| Terminate connection. | |
| CDBstring | Error () |
| Retrieve error message. | |
| Tptr | getConn () |
| Get pointer to drivers connection object. | |
| CDB * | getDB () |
| Get pointer to driver wrapping class. | |
| void | setopt (int opt) |
| Set connection specific options. | |
| int | Status () |
| Check status of this connection. | |
| virtual | ~CDBconnection () |
| Virtual destructor. | |
Private Attributes | |
| Tptr | mConn |
| CDB * | mDB |
This class is an abstract view of a possibility to connect to a sql database. Use The default constructor and the Connect method for efficient connection handling.
|
|
Copy-constructor.
|
|
|
Default initialization constructor. This is the recommend constructor to instanciate any kind (dynamic or static) of this class. It is needed to pass a valid connection object. A NULL pointer is NOT supported. There is no possibility to chain the CDB instance.
|
|
||||||||||||
|
(Deprecated) Constructor
This is a deprecated initialization constructor. Don't use this any more. The possibilities for error handling are very raw.
|
|
|
Virtual destructor.
|
|
|
Connect to database. This method makes a connection to the database.
|
|
|
Terminate connection. Terminate this instance of connection |
|
|
Retrieve error message. This function retrieve error messages from erros arises during connect.
|
|
|
Get pointer to drivers connection object.
|
|
|
Get pointer to driver wrapping class.
|
|
|
Set connection specific options. Set options corresponds to the session of this connection |
|
|
Check status of this connection. Use this function to determine the status of the connection instance.
|
|
|
|
|
|
|
1.4.4