BOSS 7.0.6
BESIII Offline Software System
|
#include <MysqlInterface.h>
Public Member Functions | |
MysqlInterface () | |
~MysqlInterface () | |
int | connect () |
int | select_db (std::string dbname) |
int | query (std::string dbname, std::string query) |
int | query (std::string dbname, std::string query, DatabaseRecordVector &records) |
int | disconnect () |
Public Member Functions inherited from DbInterface | |
DbInterface () | |
virtual | ~DbInterface () |
virtual int | connect ()=0 |
virtual int | select_db (std::string dbname)=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 | disconnect ()=0 |
bool | is_connected () |
void | set_host (std::string host) |
void | set_user (std::string user) |
void | set_passwd (std::string passwd) |
void | set_dbpath (std::string path) |
void | set_port (int port) |
void | set_reuse_connection (bool flag) |
Protected Member Functions | |
int | connect (std::string host, std::string user, std::string passwd, int port=3306) |
Additional Inherited Members | |
Protected Attributes inherited from DbInterface | |
bool | m_isConnected |
bool | m_reuseConnection |
std::string | m_dbName |
std::string | m_dbHost |
int | m_dbPort |
std::string | m_dbUser |
std::string | m_dbPasswd |
std::string | m_dbPath |
Definition at line 7 of file MysqlInterface.h.
MysqlInterface::MysqlInterface | ( | ) |
Definition at line 9 of file MysqlInterface.cxx.
MysqlInterface::~MysqlInterface | ( | ) |
Definition at line 11 of file MysqlInterface.cxx.
|
virtual |
Implements DbInterface.
Definition at line 13 of file MysqlInterface.cxx.
Referenced by connect(), query(), and select_db().
|
protected |
Definition at line 20 of file MysqlInterface.cxx.
|
virtual |
Implements DbInterface.
Definition at line 229 of file MysqlInterface.cxx.
Referenced by query(), and select_db().
|
virtual |
Implements DbInterface.
Definition at line 74 of file MysqlInterface.cxx.
|
virtual |
Implements DbInterface.
Definition at line 123 of file MysqlInterface.cxx.
|
virtual |
Implements DbInterface.
Definition at line 56 of file MysqlInterface.cxx.
Referenced by query().