BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/DatabaseSvc/DatabaseSvc/SqliteInterface.h
Go to the documentation of this file.
1#ifndef SqliteInterface_h
2#define SqliteInterface_h
3
4#include "DbInterface.h"
5#include <sqlite3.h>
6#include <string>
7
8class SqliteInterface : public DbInterface
9{
10 public:
13
14 int connect();
15 int select_db(std::string dbname);
16 int query(std::string dbname, std::string query);
17 int query(std::string dbname, std::string query, DatabaseRecordVector& records);
19
20 protected:
21 int connect(std::string fname);
22
23 private:
24 sqlite3 *m_conn;
25};
26
27#endif
int query(std::string dbname, std::string query)
int select_db(std::string dbname)
int query(std::string dbname, std::string query, DatabaseRecordVector &records)
int connect(std::string fname)