#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.
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.
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.
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
void art::SQLite3Wrapper::maybeTrace |
( |
| ) |
const |
|
private |
Definition at line 143 of file SQLite3Wrapper.cc.
147 sqlite3_trace(
db_, traceit, const_cast<std::string*>(&
key_));
static bool wantTracing()
art::SQLite3Wrapper::operator sqlite3 * |
( |
| ) |
|
|
inline |
void art::SQLite3Wrapper::reset |
( |
| ) |
|
void art::SQLite3Wrapper::reset |
( |
std::string const & |
key, |
|
|
int |
flags = SQLITE_OPEN_READONLY |
|
) |
| |
Definition at line 80 of file SQLite3Wrapper.cc.
void swap(SQLite3Wrapper &other)
std::string const & key() const
void art::SQLite3Wrapper::reset |
( |
TFile * |
tfile, |
|
|
std::string const & |
key, |
|
|
int |
flags = SQLITE_OPEN_READWRITE | SQLITE_OPEN_TRANSIENT_DB |
|
) |
| |
Definition at line 87 of file SQLite3Wrapper.cc.
void swap(SQLite3Wrapper &other)
std::string const & key() const
Definition at line 101 of file SQLite3Wrapper.cc.
void swap(SQLite3Wrapper &other)
void swap(Handle< T > &a, Handle< T > &b)
bool art::SQLite3Wrapper::wantTracing |
( |
| ) |
|
|
static |
Definition at line 66 of file SQLite3Wrapper.cc.
68 static char const* s_debug =
getenv(
"ART_DEBUG_SQL");
std::string getenv(std::string const &name)
sqlite3* art::SQLite3Wrapper::db_ |
|
private |
The documentation for this class was generated from the following files: