BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/DatabaseSvc/DatabaseSvc/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
7class MysqlInterface : public DbInterface
8{
9 public:
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);
18
19 protected:
20 int connect(std::string host, std::string user, std::string passwd);
21
22 private:
23 MYSQL* m_conn;
24};
25
26#endif
int query(std::string dbname, std::string query)
int query(std::string dbname, std::string query, DatabaseRecordVector &records)
int connect(std::string host, std::string user, std::string passwd)
int select_db(std::string dbname)