|
BOSS 8.0.0
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 () |
| 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) |
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 10 of file MysqlInterface.cxx.
| MysqlInterface::~MysqlInterface | ( | ) |
Definition at line 12 of file MysqlInterface.cxx.
|
virtual |
Implements DbInterface.
Definition at line 14 of file MysqlInterface.cxx.
Referenced by connect(), query(), query(), and select_db().
|
protected |
Definition at line 19 of file MysqlInterface.cxx.
|
virtual |
Implements DbInterface.
Definition at line 220 of file MysqlInterface.cxx.
Referenced by query(), query(), and select_db().
|
virtual |
Implements DbInterface.
Definition at line 74 of file MysqlInterface.cxx.
|
virtual |
Implements DbInterface.
Definition at line 121 of file MysqlInterface.cxx.
|
virtual |
Implements DbInterface.
Definition at line 60 of file MysqlInterface.cxx.