#include <DbInterface.h>
Inheritance diagram for DbInterface:
Public Member Functions | |
virtual int | connect ()=0 |
virtual int | connect ()=0 |
DbInterface () | |
DbInterface () | |
virtual int | disconnect ()=0 |
virtual int | disconnect ()=0 |
bool | is_connected () |
bool | is_connected () |
virtual int | query (std::string dbname, std::string query)=0 |
virtual int | query (std::string dbname, std::string query, DatabaseRecordVector &records)=0 |
virtual int | query (std::string dbname, std::string query)=0 |
virtual int | query (std::string dbname, std::string query, DatabaseRecordVector &records)=0 |
virtual int | select_db (std::string dbname)=0 |
virtual int | select_db (std::string dbname)=0 |
void | set_dbpath (std::string path) |
void | set_dbpath (std::string path) |
void | set_host (std::string host) |
void | set_host (std::string host) |
void | set_passwd (std::string passwd) |
void | set_passwd (std::string passwd) |
void | set_reuse_connection (bool flag) |
void | set_reuse_connection (bool flag) |
void | set_user (std::string user) |
void | set_user (std::string user) |
virtual | ~DbInterface () |
virtual | ~DbInterface () |
Protected Attributes | |
std::string | m_dbHost |
std::string | m_dbName |
std::string | m_dbPasswd |
std::string | m_dbPath |
std::string | m_dbUser |
bool | m_isConnected |
bool | m_reuseConnection |
|
00004 { 00005 m_isConnected = false; 00006 m_reuseConnection = false; 00007 m_dbName="offlinedb"; 00008 }
|
|
00011 { 00012 }
|
|
|
|
|
|
Implemented in MysqlInterface, SqliteInterface, MysqlInterface, and SqliteInterface. |
|
Implemented in MysqlInterface, SqliteInterface, MysqlInterface, and SqliteInterface. |
|
Implemented in MysqlInterface, SqliteInterface, MysqlInterface, and SqliteInterface. |
|
Implemented in MysqlInterface, SqliteInterface, MysqlInterface, and SqliteInterface. |
|
00027 { return m_isConnected; }
|
|
00027 { return m_isConnected; }
|
|
Implemented in MysqlInterface, SqliteInterface, MysqlInterface, and SqliteInterface. |
|
Implemented in MysqlInterface, SqliteInterface, MysqlInterface, and SqliteInterface. |
|
Implemented in MysqlInterface, SqliteInterface, MysqlInterface, and SqliteInterface. |
|
Implemented in MysqlInterface, SqliteInterface, MysqlInterface, and SqliteInterface. |
|
Implemented in MysqlInterface, SqliteInterface, MysqlInterface, and SqliteInterface. |
|
Implemented in MysqlInterface, SqliteInterface, MysqlInterface, and SqliteInterface. |
|
00032 {m_dbPath=path;};
|
|
00032 {m_dbPath=path;};
|
|
00029 {m_dbHost=host;};
|
|
00029 {m_dbHost=host;};
|
|
00031 {m_dbPasswd=passwd;};
|
|
00031 {m_dbPasswd=passwd;};
|
|
00033 { m_reuseConnection=flag;};
|
|
00033 { m_reuseConnection=flag;};
|
|
00030 {m_dbUser=user;};
|
|
00030 {m_dbUser=user;};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|