|
virtual Dataset * | CreateDataset () const =0 |
|
virtual void | setHostName (const char *newHost) |
|
const char * | getHostName (void) const |
|
void | setPort (const char *newPort) |
|
const char * | getPort (void) const |
|
virtual void | setDatabase (const char *newDb) |
|
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 | status (void) |
|
virtual int | setErr (int err_code, const char *qry)=0 |
|
virtual const char * | getErrorMsg (void) |
|
virtual int | connect (bool create) |
|
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 void | disconnect (void) |
|
virtual int | reset (void) |
|
virtual int | create (void) |
|
virtual int | drop (void) |
|
virtual long | nextid (const char *seq_name)=0 |
|
virtual int | copy (const char *new_name) |
|
virtual int | drop_analytics (void) |
|
virtual bool | exists (void) |
|
virtual void | start_transaction () |
|
virtual void | commit_transaction () |
|
virtual void | rollback_transaction () |
|
virtual std::string | prepare (const char *format,...) |
| Prepare a SQL statement for execution or querying using C printf nomenclature. More...
|
|
virtual std::string | vprepare (const char *format, va_list args)=0 |
| Prepare a SQL statement for execution or querying using C printf nomenclature. More...
|
|
virtual bool | in_transaction () |
|
|
bool | active |
|
bool | compression |
|
std::string | error |
|
std::string | host |
|
std::string | port |
|
std::string | db |
|
std::string | login |
|
std::string | passwd |
|
std::string | sequence_table |
|
std::string | default_charset |
|
std::string | key |
|
std::string | cert |
|
std::string | ca |
|
std::string | capath |
|
std::string | ciphers |
|
◆ prepare()
std::string dbiplus::Database::prepare |
( |
const char * |
format, |
|
|
|
... |
|
) |
| |
|
virtual |
Prepare a SQL statement for execution or querying using C printf nomenclature.
- Parameters
-
format | - C printf compliant format string |
... | - optional comma separated list of variables for substitution in format string placeholders. |
- Returns
- escaped and formatted string.
◆ vprepare()
virtual std::string dbiplus::Database::vprepare |
( |
const char * |
format, |
|
|
va_list |
args |
|
) |
| |
|
pure virtual |
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.
Implemented in dbiplus::SqliteDatabase, and dbiplus::MysqlDatabase.
The documentation for this class was generated from the following files:
- xbmc/dbwrappers/dataset.h
- xbmc/dbwrappers/dataset.cpp