BOSS
7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
Database/DatabaseSvc/DatabaseSvc-00-00-24/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
8
class
SqliteInterface
:
public
DbInterface
9
{
10
public
:
11
SqliteInterface
();
12
~SqliteInterface
();
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);
18
int
disconnect
();
19
20
protected
:
21
int
connect
(std::string fname);
22
23
private
:
24
sqlite3 *m_conn;
25
};
26
27
#endif
DbInterface.h
DatabaseRecordVector
Definition:
Database/DatabaseSvc/DatabaseSvc-00-00-24/DatabaseSvc/DatabaseRecord.h:75
DbInterface
Definition:
Database/DatabaseSvc/DatabaseSvc-00-00-24/DatabaseSvc/DbInterface.h:11
SqliteInterface
Definition:
Database/DatabaseSvc/DatabaseSvc-00-00-24/DatabaseSvc/SqliteInterface.h:9
SqliteInterface::query
int query(std::string dbname, std::string query)
Definition:
SqliteInterface.cxx:74
SqliteInterface::disconnect
int disconnect()
Definition:
SqliteInterface.cxx:158
SqliteInterface::connect
int connect()
Definition:
SqliteInterface.cxx:30
SqliteInterface::select_db
int select_db(std::string dbname)
Definition:
SqliteInterface.cxx:53
SqliteInterface::~SqliteInterface
~SqliteInterface()
Definition:
SqliteInterface.cxx:28
SqliteInterface::SqliteInterface
SqliteInterface()
Definition:
SqliteInterface.cxx:26
source
Database
DatabaseSvc
DatabaseSvc-00-00-24
DatabaseSvc
SqliteInterface.h
Generated by
1.9.6