#include <sqlitedataset.h>
|
| SqliteDatabase () |
|
| ~SqliteDatabase () override |
|
Dataset * | CreateDataset () const override |
|
sqlite3 * | getHandle () |
|
int | status () override |
|
int | setErr (int err_code, const char *qry) override |
|
const char * | getErrorMsg () override |
|
void | setHostName (const char *newHost) override |
|
void | setDatabase (const char *newDb) override |
|
int | connect (bool create) override |
|
void | disconnect () override |
|
int | postconnect () override |
|
int | create () override |
|
int | drop () override |
|
bool | exists () override |
|
int | copy (const char *backup_name) override |
|
int | drop_analytics (void) override |
|
long | nextid (const char *seq_name) override |
|
void | start_transaction () override |
|
void | commit_transaction () override |
|
void | rollback_transaction () override |
|
std::string | vprepare (const char *format, va_list args) override |
| Prepare a SQL statement for execution or querying using C printf nomenclature.
|
|
bool | in_transaction () override |
|
| Database () |
|
virtual | ~Database () |
|
const char * | getHostName (void) const |
|
void | setPort (const char *newPort) |
|
const char * | getPort (void) const |
|
const char * | getDatabase (void) const |
|
void | setLogin (const char *newLogin) |
|
const char * | getLogin (void) const |
|
void | setPasswd (const char *newPasswd) |
|
const char * | getPasswd (void) const |
|
virtual bool | isActive (void) const |
|
void | setSequenceTable (const char *new_seq_table) |
|
const char * | getSequenceTable (void) |
|
const char * | getDefaultCharset (void) |
|
virtual void | setConfig (const char *newKey, const char *newCert, const char *newCA, const char *newCApath, const char *newCiphers, bool newCompression) |
|
virtual int | init (void) |
|
virtual int | connectFull (const char *newDb, const char *newHost=NULL, const char *newLogin=NULL, const char *newPasswd=NULL, const char *newPort=NULL, const char *newKey=NULL, const char *newCert=NULL, const char *newCA=NULL, const char *newCApath=NULL, const char *newCiphers=NULL, bool newCompression=false) |
|
virtual int | reset (void) |
|
virtual std::string | prepare (const char *format,...) |
| Prepare a SQL statement for execution or querying using C printf nomenclature.
|
|
◆ SqliteDatabase()
dbiplus::SqliteDatabase::SqliteDatabase |
( |
| ) |
|
◆ ~SqliteDatabase()
dbiplus::SqliteDatabase::~SqliteDatabase |
( |
| ) |
|
|
override |
◆ commit_transaction()
void dbiplus::SqliteDatabase::commit_transaction |
( |
| ) |
|
|
overridevirtual |
◆ connect()
int dbiplus::SqliteDatabase::connect |
( |
bool | create | ) |
|
|
overridevirtual |
◆ copy()
int dbiplus::SqliteDatabase::copy |
( |
const char * | backup_name | ) |
|
|
overridevirtual |
◆ create()
int dbiplus::SqliteDatabase::create |
( |
void | | ) |
|
|
overridevirtual |
◆ CreateDataset()
Dataset * dbiplus::SqliteDatabase::CreateDataset |
( |
| ) |
const |
|
overridevirtual |
◆ disconnect()
void dbiplus::SqliteDatabase::disconnect |
( |
void | | ) |
|
|
overridevirtual |
◆ drop()
int dbiplus::SqliteDatabase::drop |
( |
void | | ) |
|
|
overridevirtual |
◆ drop_analytics()
int dbiplus::SqliteDatabase::drop_analytics |
( |
void | | ) |
|
|
overridevirtual |
◆ exists()
bool dbiplus::SqliteDatabase::exists |
( |
void | | ) |
|
|
overridevirtual |
◆ getErrorMsg()
const char * dbiplus::SqliteDatabase::getErrorMsg |
( |
void | | ) |
|
|
overridevirtual |
◆ getHandle()
sqlite3 * dbiplus::SqliteDatabase::getHandle |
( |
| ) |
|
|
inline |
◆ in_transaction()
bool dbiplus::SqliteDatabase::in_transaction |
( |
| ) |
|
|
inlineoverridevirtual |
◆ nextid()
long dbiplus::SqliteDatabase::nextid |
( |
const char * | seq_name | ) |
|
|
overridevirtual |
◆ postconnect()
int dbiplus::SqliteDatabase::postconnect |
( |
| ) |
|
|
overridevirtual |
◆ rollback_transaction()
void dbiplus::SqliteDatabase::rollback_transaction |
( |
| ) |
|
|
overridevirtual |
◆ setDatabase()
void dbiplus::SqliteDatabase::setDatabase |
( |
const char * | newDb | ) |
|
|
overridevirtual |
◆ setErr()
int dbiplus::SqliteDatabase::setErr |
( |
int | err_code, |
|
|
const char * | qry ) |
|
overridevirtual |
◆ setHostName()
void dbiplus::SqliteDatabase::setHostName |
( |
const char * | newHost | ) |
|
|
overridevirtual |
◆ start_transaction()
void dbiplus::SqliteDatabase::start_transaction |
( |
| ) |
|
|
overridevirtual |
◆ status()
int dbiplus::SqliteDatabase::status |
( |
void | | ) |
|
|
overridevirtual |
◆ vprepare()
std::string dbiplus::SqliteDatabase::vprepare |
( |
const char * | format, |
|
|
va_list | args ) |
|
overridevirtual |
Prepare a SQL statement for execution or querying using C printf nomenclature.
- Parameters
-
format | - C printf compliant format string |
args | - va_list of variables for substitution in format string placeholders. |
- Returns
- escaped and formatted string.
Implements dbiplus::Database.
◆ _in_transaction
bool dbiplus::SqliteDatabase::_in_transaction |
|
protected |
◆ conn
sqlite3* dbiplus::SqliteDatabase::conn |
|
protected |
◆ last_err
int dbiplus::SqliteDatabase::last_err |
|
protected |
The documentation for this class was generated from the following files: