|
Public Types |
| enum | unicode_flag_t { DEBEA_UNICODE_DEFAULT,
DEBEA_UNICODE_ON,
DEBEA_UNICODE_OFF
} |
| | Should driver use UNICODE capability.
|
Public Member Functions |
|
virtual void | begin ()=0 |
| | Start transaction.
|
|
virtual void | commit ()=0 |
| | Commit transaction.
|
| void | decUsed () |
| | Decrease usage counter.
|
| virtual void | disconnect ()=0 |
| | disconnect.
|
|
virtual std::list< std::string > | getRelationNames ()=0 |
| | Get list of relations that connected database advertise to us This list does not contain system tables, only ones that are created by user.
|
| void | incUsed () |
| | Increase usage counter.
|
| bool | isUsed () const |
| | Check if connection is used.
|
| virtual bool | isValid () const =0 |
| | Check if connection is valid.
|
|
virtual void | rollback ()=0 |
| | Rollback transaction.
|
| DbResult * | sendQuery (const char *pSql) |
| | Send SQL SELECT to database.
|
|
DbResult * | sendQuery (const std::string &pSql) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
int | sendUpdate (const std::string &pSql) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| int | sendUpdate (const char *pSql) |
| | Send SQL update commands to database.
|
|
virtual | ~DbConnection () |
| | Destructor.
|
Protected Member Functions |
| virtual DbResult * | execQuery (const char *pSql)=0 |
| | Override with database specific implementation.
|
| virtual int | execUpdate (const char *pSql)=0 |
| | Override with database specific implementation.
|
Protected Attributes |
|
int | mUseCount |
| | Usage counter used by streams.
|
You can send commands or queries to database using this connection object. Most databases does not support multiple query processing on single connection so if you use sendQuery() method for a second time be sure that DbResult from first query is destroyed or all rows are fetched.