#include <dataprovider.h>
Inheritance diagram for dal::DataProvider:

Notes:
Limitations:
Definition at line 58 of file dataprovider.h.
Public Member Functions | |
| DataProvider (void) throw () | |
| Constructor. | |
| virtual | ~DataProvider (void) throw () |
| Destructor. | |
| bool | isConnected (void) const throw () |
| Get the connection status. | |
| virtual DbBackends | getDbBackend (void) const =0 throw () |
| Get the name of the database backend. | |
| virtual void | connect (const std::string &dbName, const std::string &userName, const std::string &password)=0 |
| Create a connection to the database. | |
| virtual const RecordSet & | execSql (const std::string &sql, const bool refresh=false)=0 |
| Execute a SQL query. | |
| virtual void | disconnect (void)=0 |
| Close the connection to the database. | |
| std::string | getDbName (void) |
| Get the DataBase Name. | |
Protected Attributes | |
| std::string | mDbName |
| the database name | |
| bool | mIsConnected |
| the connection status | |
| std::string | mSql |
| cache the last SQL query | |
| RecordSet | mRecordSet |
| cache the result of the last SQL query | |
|
|
Constructor.
Definition at line 33 of file dataprovider.cpp. |
|
|
Destructor.
Definition at line 45 of file dataprovider.cpp. |
|
||||||||||||||||
|
Create a connection to the database.
Implemented in dal::MySqlDataProvider, dal::PqDataProvider, and dal::SqLiteDataProvider. |
|
|
Close the connection to the database.
Implemented in dal::MySqlDataProvider, dal::PqDataProvider, and dal::SqLiteDataProvider. |
|
||||||||||||
|
Execute a SQL query.
Implemented in dal::MySqlDataProvider, dal::PqDataProvider, and dal::SqLiteDataProvider. |
|
|
Get the name of the database backend.
Implemented in dal::MySqlDataProvider, dal::PqDataProvider, and dal::SqLiteDataProvider. |
|
|
Get the DataBase Name.
Definition at line 66 of file dataprovider.cpp. |
|
|
Get the connection status.
Definition at line 56 of file dataprovider.cpp. |
|
|
the database name
Definition at line 144 of file dataprovider.h. |
|
|
the connection status
Definition at line 145 of file dataprovider.h. |
|
|
cache the result of the last SQL query
Definition at line 147 of file dataprovider.h. |
|
|
cache the last SQL query
Definition at line 146 of file dataprovider.h. |
1.3.9.1