BOSS
7.1.1
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 "
DatabaseSvc/DbInterface.h
"
5
#include <mysql.h>
6
7
class
MysqlInterface
:
public
DbInterface
8
{
9
public
:
10
MysqlInterface
();
11
~MysqlInterface
();
12
13
int
connect
();
14
int
select_db
(std::string dbname);
15
int
query
(std::string dbname, std::string
query
);
16
int
query
(std::string dbname, std::string
query
,
DatabaseRecordVector
& records);
17
int
disconnect
();
18
19
protected
:
20
int
connect
(std::string host, std::string user, std::string passwd,
int
port);
21
22
private
:
23
MYSQL
* m_conn;
24
};
25
26
#endif
DbInterface.h
MYSQL
struct st_mysql MYSQL
Definition
MysqlConnection.h:11
DatabaseRecordVector
Definition
DatabaseRecord.h:75
DbInterface
Definition
DbInterface.h:11
MysqlInterface
Definition
MysqlInterface.h:8
MysqlInterface::query
int query(std::string dbname, std::string query)
Definition
MysqlInterface.cxx:75
MysqlInterface::connect
int connect()
Definition
MysqlInterface.cxx:14
MysqlInterface::MysqlInterface
MysqlInterface()
Definition
MysqlInterface.cxx:10
MysqlInterface::disconnect
int disconnect()
Definition
MysqlInterface.cxx:229
MysqlInterface::~MysqlInterface
~MysqlInterface()
Definition
MysqlInterface.cxx:12
MysqlInterface::select_db
int select_db(std::string dbname)
Definition
MysqlInterface.cxx:57
7.1.1
Database
DatabaseSvc
DatabaseSvc-00-01-02
DatabaseSvc
MysqlInterface.h
Generated by
1.12.0