#include "SQLite3Wrapper.h"
|
typedef int(* | callback_t) (void *, int, char **, char **) |
|
Definition at line 17 of file SQLite3Wrapper.h.
typedef int(* art::SQLite3Wrapper::callback_t) (void *, int, char **, char **) |
art::SQLite3Wrapper::SQLite3Wrapper |
( |
| ) |
|
art::SQLite3Wrapper::SQLite3Wrapper |
( |
std::string const & |
key, |
|
|
int |
flags = SQLITE_OPEN_READONLY |
|
) |
| |
|
explicit |
Definition at line 51 of file SQLite3Wrapper.cc.
References initDB().
void initDB(int flags, TFile *tfile=0)
std::string const & key() const
art::SQLite3Wrapper::SQLite3Wrapper |
( |
TFile * |
tfile, |
|
|
std::string const & |
key, |
|
|
int |
flags = SQLITE_OPEN_READWRITE |
|
) |
| |
Definition at line 57 of file SQLite3Wrapper.cc.
References initDB().
void initDB(int flags, TFile *tfile=0)
std::string const & key() const
art::SQLite3Wrapper::~SQLite3Wrapper |
( |
| ) |
|
void art::SQLite3Wrapper::initDB |
( |
int |
flags, |
|
|
TFile * |
tfile = 0 |
|
) |
| |
|
private |
Definition at line 109 of file SQLite3Wrapper.cc.
References db_, art::errors::FileOpenError, key_, maybeTrace(), and tkeyvfs_open_v2().
Referenced by operator sqlite3 *(), and SQLite3Wrapper().
112 DBTYPE type = tfile ? SQLITE3_TKEYDB :
114 (
key_ ==
":memory:" ? SQLITE3_MEMDB : SQLITE3_FILEDB) :
120 <<
"Failed to open TKEYVFS DB due to empty key spec.\n";
125 err = sqlite3_open(
key_.c_str(), &
db_);
128 err = sqlite3_open_v2(
key_.c_str(), &
db_, flags,
nullptr);
131 err = sqlite3_open(
key_.c_str(), &
db_);
136 <<
"Failed to open requested DB, \"" <<
key_ <<
"\" of type, \"" 137 << dbTypeAsString(type) <<
"\" -- " << sqlite3_errmsg(
db_) <<
"\n";
int tkeyvfs_open_v2(const char *filename, sqlite3 **ppDb, int flags, TFile *rootFile )
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
std::string const& art::SQLite3Wrapper::key |
( |
| ) |
const |
|
inline |
void art::SQLite3Wrapper::maybeTrace |
( |
| ) |
const |
|
private |
art::SQLite3Wrapper::operator sqlite3 * |
( |
| ) |
|
|
inline |
void art::SQLite3Wrapper::reset |
( |
void |
| ) |
|
void art::SQLite3Wrapper::reset |
( |
std::string const & |
key, |
|
|
int |
flags = SQLITE_OPEN_READONLY |
|
) |
| |
void art::SQLite3Wrapper::reset |
( |
TFile * |
tfile, |
|
|
std::string const & |
key, |
|
|
int |
flags = SQLITE_OPEN_READWRITE | SQLITE_OPEN_TRANSIENT_DB |
|
) |
| |
bool art::SQLite3Wrapper::wantTracing |
( |
| ) |
|
|
static |
sqlite3* art::SQLite3Wrapper::db_ |
|
private |
std::string art::SQLite3Wrapper::key_ |
|
private |
The documentation for this class was generated from the following files: