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
7class MysqlInterface : public DbInterface {
8public:
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
18protected:
19 int connect( std::string host, std::string user, std::string passwd, int port );
20
21private:
22 MYSQL* m_conn;
23};
24
25#endif
int query(std::string dbname, std::string query)
int select_db(std::string dbname)