Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <mysqldataset.h>
Public Member Functions | |
MysqlDataset () | |
MysqlDataset (MysqlDatabase *newDb) | |
~MysqlDataset () override | |
void | set_autorefresh (bool val) |
void | open () override |
void | open (const std::string &sql) override |
int | exec () override |
int | exec (const std::string &sql) override |
const void * | getExecRes () override |
bool | query (const std::string &query) override |
void | close (void) override |
void | cancel () override |
int64_t | lastinsertid () override |
long | nextid (const char *seq_name) override |
int | num_rows () override |
void | interrupt () override |
bool | bof () override |
bool | eof () override |
void | first () override |
void | last () override |
void | prev () override |
void | next () override |
bool | seek (int pos=0) override |
bool | dropIndex (const char *table, const char *index) override |
Drop an index from the database table, provided it exists. | |
Public Member Functions inherited from dbiplus::Dataset | |
Dataset () | |
Dataset (Database *newDb) | |
virtual | ~Dataset () |
void | setDatabase (Database *newDb) |
Database * | getDatabase (void) |
void | setExecSql (const char *newSql) |
const char * | getExecSql (void) |
virtual bool | isActive (void) |
virtual void | setSqlParams (sqlType t, const char *sqlFrmt,...) |
virtual void | refresh () |
virtual bool | goto_rec (int pos=1) |
virtual void | insert () |
virtual void | append () |
virtual void | edit () |
virtual void | del () |
virtual void | post () |
virtual void | deletion () |
virtual void | setParamList (const ParamList ¶ms) |
virtual bool | locate () |
virtual bool | locate (const ParamList ¶ms) |
virtual bool | findNext () |
virtual int | field_count () |
virtual int | fieldCount () |
virtual const char * | fieldName (int n) |
virtual int | fieldIndex (const char *fn) |
virtual bool | set_field_value (const char *f_name, const field_value &value) |
virtual bool | sf (const char *f, const field_value &v) |
virtual const field_value & | get_field_value (const char *f_name) |
virtual const field_value & | get_field_value (int index) |
const field_value & | fv (const char *f) |
const field_value & | fv (int index) |
void | set_autocommit (bool v) |
bool | get_autocommit () |
Fields * | get_fields_object () |
Fields * | get_edit_object () |
const result_set & | get_result_set () |
const sql_record * | get_sql_record () |
dsStates | get_state () |
void | set_select_sql (const char *sel_sql) |
void | set_select_sql (const std::string &select_sql) |
void | add_update_sql (const char *upd_sql) |
void | add_update_sql (const std::string &upd_sql) |
void | add_insert_sql (const char *ins_sql) |
void | add_insert_sql (const std::string &ins_sql) |
void | add_delete_sql (const char *del_sql) |
void | add_delete_sql (const std::string &del_sql) |
void | clear_update_sql () |
void | clear_insert_sql () |
void | clear_delete_sql () |
size_t | insert_sql_count () |
size_t | delete_sql_count () |
const char * | get_select_sql () |
Protected Member Functions | |
MYSQL * | handle () |
virtual void | make_query (StringList &_sql) |
void | make_insert () override |
void | make_edit () override |
void | make_deletion () override |
void | fill_fields () override |
virtual void | free_row () |
Protected Member Functions inherited from dbiplus::Dataset | |
void | parse_sql (std::string &sql) |
virtual field_value | f_old (const char *f) |
char * | str_toLower (char *s) |
Additional Inherited Members | |
Protected Attributes inherited from dbiplus::Dataset | |
Database * | db |
dsStates | ds_state |
Fields * | fields_object |
Fields * | edit_object |
std::unordered_map< std::string, unsigned int > | name2indexMap |
result_set | result |
result_set | exec_res |
bool | autorefresh |
bool | active |
bool | haveError |
int | frecno |
std::string | sql |
ParamList | plist |
bool | fbof |
bool | feof |
bool | autocommit |
std::string | empty_sql |
std::string | select_sql |
StringList | update_sql |
StringList | insert_sql |
StringList | delete_sql |
dbiplus::MysqlDataset::MysqlDataset | ( | ) |
|
explicit |
|
override |
Reimplemented from dbiplus::Dataset.
|
overridevirtual |
Reimplemented from dbiplus::Dataset.
Reimplemented from dbiplus::Dataset.
|
overridevirtual |
Drop an index from the database table, provided it exists.
table | - name of the table the index to be dropped is associated with |
index | - name of the index to be dropped |
Reimplemented from dbiplus::Dataset.
Reimplemented from dbiplus::Dataset.
|
overridevirtual |
Implements dbiplus::Dataset.
|
overridevirtual |
Implements dbiplus::Dataset.
Implements dbiplus::Dataset.
|
overridevirtual |
Reimplemented from dbiplus::Dataset.
|
overridevirtual |
Implements dbiplus::Dataset.
|
protected |
|
overridevirtual |
Reimplemented from dbiplus::Dataset.
|
overridevirtual |
Reimplemented from dbiplus::Dataset.
|
overridevirtual |
Implements dbiplus::Dataset.
|
overrideprotectedvirtual |
Implements dbiplus::Dataset.
|
overrideprotectedvirtual |
Implements dbiplus::Dataset.
|
overrideprotectedvirtual |
Implements dbiplus::Dataset.
|
protectedvirtual |
Reimplemented from dbiplus::Dataset.
|
overridevirtual |
Implements dbiplus::Dataset.
|
overridevirtual |
Implements dbiplus::Dataset.
|
overridevirtual |
Implements dbiplus::Dataset.
|
overridevirtual |
Implements dbiplus::Dataset.
Reimplemented from dbiplus::Dataset.
|
overridevirtual |
Implements dbiplus::Dataset.
Reimplemented from dbiplus::Dataset.