BOSS
8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
MysqlInterface.h
Go to the documentation of this file.
1
#ifndef MysqlInterface_h
2
#define MysqlInterface_h
3
4
#include "
DbInterface.h
"
5
#include <mysql.h>
6
7
class
MysqlInterface
:
public
DbInterface
{
8
public
:
9
MysqlInterface
();
10
~MysqlInterface
();
11
12
int
connect
();
13
int
select_db
( std::string dbname );
14
int
query
( std::string dbname, std::string
query
);
15
int
query
( std::string dbname, std::string
query
,
DatabaseRecordVector
& records );
16
int
disconnect
();
17
18
protected
:
19
int
connect
( std::string host, std::string user, std::string passwd,
int
port );
20
21
private
:
22
MYSQL
* m_conn;
23
};
24
25
#endif
MYSQL
struct st_mysql MYSQL
Definition
Calibration/rdbModel/include/rdbModel/Db/MysqlConnection.h:12
DbInterface.h
DatabaseRecordVector
Definition
Database/DatabaseSvc/include/DatabaseSvc/DatabaseRecord.h:57
DbInterface::DbInterface
DbInterface()
Definition
DbInterface.cxx:3
MysqlInterface::query
int query(std::string dbname, std::string query)
Definition
MysqlInterface.cxx:74
MysqlInterface::connect
int connect()
Definition
MysqlInterface.cxx:14
MysqlInterface::MysqlInterface
MysqlInterface()
Definition
MysqlInterface.cxx:10
MysqlInterface::disconnect
int disconnect()
Definition
MysqlInterface.cxx:220
MysqlInterface::~MysqlInterface
~MysqlInterface()
Definition
MysqlInterface.cxx:12
MysqlInterface::select_db
int select_db(std::string dbname)
Definition
MysqlInterface.cxx:60
8.0.0
BOSS_Source
Database
DatabaseSvc
src
MysqlInterface.h
Generated by
1.16.1