BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
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
9public:
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
19protected:
20 int connect( std::string fname );
21
22private:
23 sqlite3* m_conn;
24};
25
26#endif
int query(std::string dbname, std::string query)
int select_db(std::string dbname)