creaImageIO_lib
|
#include <CppSQLite3.h>
Public Member Functions | |
CppSQLite3DB () | |
virtual | ~CppSQLite3DB () |
void | open (const char *szFile) |
void | close () |
bool | tableExists (const char *szTable) |
int | execDML (const char *szSQL) |
CppSQLite3Query | execQuery (const char *szSQL) |
int | execScalar (const char *szSQL) |
CppSQLite3Table | getTable (const char *szSQL) |
CppSQLite3Statement | compileStatement (const char *szSQL) |
sqlite_int64 | lastRowId () |
void | interrupt () |
void | setBusyTimeout (int nMillisecs) |
Static Public Member Functions | |
static const char * | SQLiteVersion () |
Private Member Functions | |
CppSQLite3DB (const CppSQLite3DB &db) | |
CppSQLite3DB & | operator= (const CppSQLite3DB &db) |
sqlite3_stmt * | compile (const char *szSQL) |
void | checkDB () |
Private Attributes | |
sqlite3 * | mpDB |
int | mnBusyTimeoutMs |
Definition at line 527 of file CppSQLite3.h.
CppSQLite3DB::CppSQLite3DB | ( | ) |
Definition at line 2215 of file CppSQLite3.cpp.
References mnBusyTimeoutMs, and mpDB.
|
virtual |
Definition at line 2243 of file CppSQLite3.cpp.
References close().
|
private |
Definition at line 2229 of file CppSQLite3.cpp.
References mnBusyTimeoutMs, and mpDB.
|
private |
Definition at line 2553 of file CppSQLite3.cpp.
References CPPSQLITE_ERROR, DONT_DELETE_MSG, and mpDB.
Referenced by compile(), compileStatement(), execDML(), execQuery(), and getTable().
void CppSQLite3DB::close | ( | ) |
Definition at line 2299 of file CppSQLite3.cpp.
References mpDB.
Referenced by ~CppSQLite3DB().
|
private |
Definition at line 2575 of file CppSQLite3.cpp.
References checkDB(), and mpDB.
Referenced by compileStatement(), and execQuery().
CppSQLite3Statement CppSQLite3DB::compileStatement | ( | const char * | szSQL | ) |
Definition at line 2319 of file CppSQLite3.cpp.
References checkDB(), compile(), and mpDB.
int CppSQLite3DB::execDML | ( | const char * | szSQL | ) |
Definition at line 2359 of file CppSQLite3.cpp.
References checkDB(), and mpDB.
Referenced by creaImageIO::SQLiteTreeHandler::DBCreate(), and creaImageIO::SQLiteTreeHandler::DBOpen().
CppSQLite3Query CppSQLite3DB::execQuery | ( | const char * | szSQL | ) |
Definition at line 2397 of file CppSQLite3.cpp.
References checkDB(), compile(), DONT_DELETE_MSG, and mpDB.
Referenced by execScalar().
int CppSQLite3DB::execScalar | ( | const char * | szSQL | ) |
Definition at line 2451 of file CppSQLite3.cpp.
References CPPSQLITE_ERROR, DONT_DELETE_MSG, CppSQLite3Query::eof(), execQuery(), CppSQLite3Query::fieldValue(), and CppSQLite3Query::numFields().
Referenced by tableExists().
CppSQLite3Table CppSQLite3DB::getTable | ( | const char * | szSQL | ) |
Definition at line 2481 of file CppSQLite3.cpp.
References checkDB(), and mpDB.
|
inline |
sqlite_int64 CppSQLite3DB::lastRowId | ( | ) |
Definition at line 2527 of file CppSQLite3.cpp.
References mpDB.
Referenced by creaImageIO::SQLiteTreeHandler::DBInsert().
void CppSQLite3DB::open | ( | const char * | szFile | ) |
Definition at line 2271 of file CppSQLite3.cpp.
References DONT_DELETE_MSG, mnBusyTimeoutMs, mpDB, and setBusyTimeout().
Referenced by creaImageIO::Synchronizer::CreateDB(), creaImageIO::TimestampDatabaseHandler::DBCreate(), creaImageIO::SQLiteTreeHandler::DBCreate(), creaImageIO::TimestampDatabaseHandler::DBOpen(), creaImageIO::SQLiteTreeHandler::DBOpen(), and creaImageIO::Synchronizer::Initialize().
|
private |
void CppSQLite3DB::setBusyTimeout | ( | int | nMillisecs | ) |
Definition at line 2539 of file CppSQLite3.cpp.
References mnBusyTimeoutMs, and mpDB.
Referenced by open().
|
inlinestatic |
Definition at line 587 of file CppSQLite3.h.
Referenced by creaImageIO::TimestampDatabaseHandler::TimestampDatabaseHandler().
bool CppSQLite3DB::tableExists | ( | const char * | szTable | ) |
Definition at line 2337 of file CppSQLite3.cpp.
References execScalar().
Referenced by creaImageIO::SQLiteTreeHandler::DBImportTreeDescription().
|
private |
Definition at line 611 of file CppSQLite3.h.
Referenced by CppSQLite3DB(), open(), operator=(), and setBusyTimeout().
|
private |
Definition at line 609 of file CppSQLite3.h.
Referenced by checkDB(), close(), compile(), compileStatement(), CppSQLite3DB(), execDML(), execQuery(), getTable(), interrupt(), lastRowId(), open(), operator=(), and setBusyTimeout().