![]() |
TkN 2.7
Toolkit for Nuclei
|
Representaiton of a sqlite data table. More...
#include <db/tkdb_table.h>
Classes | |
| struct | measure_data_struct |
| data structure used to fill a tkmeasure object from the sqlite database More... | |
Public Types | |
| using | measure_columns = std::array<tkdb_column *, 6> |
Public Member Functions | |
| tkdb_table () | |
| tkdb_table (const char *_name, sqlite3 *_db) | |
| tkdb_table (const tkdb_table &_other) | |
| tkdb_table (tkdb_table &&_other) noexcept | |
| virtual | ~tkdb_table () |
| void | add_column (const char *_colname, const char *_coltype) |
| void | add_constraint (const char *_constraint) |
| void | begin (tkstring _condition, tkstring _selection="*") |
| void | end () |
| reads the next entry coresponding to the select statement and fills columns | |
| tkdb_column * | get_column (const tkstring &_col_name) |
| row & | get_columns () |
| measure_columns | get_measure_columns (const tkstring &_col_base_name) |
| tkstring | get_name () |
| bool | has_column (const tkstring &_col_name) |
| void | load () |
| resets column values and ends the select statement | |
| bool | next () |
| executes the select statement | |
| tkdb_table & | operator= (const tkdb_table &_other) |
| tkdb_table & | operator= (tkdb_table &&_other) noexcept |
| tkdb_column & | operator[] (const char *_column) |
| void | print (const tkstring &_opt="") |
| void | print_columns (const tkstring &_opt="") |
| void | print_rows (const char *_selection, const char *_properties="*") |
| void | push_dummy_row () |
| void | push_row () |
| void | read_measure (measure_data_struct &_struct, const measure_columns &_columns) |
| void | read_measure (measure_data_struct &_struct, const tkstring &_col_base_name) |
| void | reset_column_values () |
| void | update_row (const tkstring &_where) |
| void | write_to_database () |
Representaiton of a sqlite data table.
Definition at line 30 of file tkdb_table.h.
| using measure_columns = std::array<tkdb_column *, 6> |
Definition at line 81 of file tkdb_table.h.
| tkdb_table | ( | const char * | _name, |
| sqlite3 * | _db ) |
Definition at line 29 of file tkdb_table.cpp.
|
inline |
Definition at line 95 of file tkdb_table.h.
| tkdb_table | ( | const tkdb_table & | _other | ) |
Definition at line 37 of file tkdb_table.cpp.
|
noexcept |
Definition at line 58 of file tkdb_table.cpp.
|
virtual |
Definition at line 91 of file tkdb_table.cpp.
| void add_column | ( | const char * | _colname, |
| const char * | _coltype ) |
Definition at line 239 of file tkdb_table.cpp.
| void add_constraint | ( | const char * | _constraint | ) |
Definition at line 247 of file tkdb_table.cpp.
Definition at line 164 of file tkdb_table.cpp.
| void end | ( | ) |
reads the next entry coresponding to the select statement and fills columns
Definition at line 206 of file tkdb_table.cpp.
| tkdb_column * get_column | ( | const tkstring & | _col_name | ) |
Definition at line 258 of file tkdb_table.cpp.
|
inline |
Definition at line 126 of file tkdb_table.h.
| tkdb_table::measure_columns get_measure_columns | ( | const tkstring & | _col_base_name | ) |
Definition at line 409 of file tkdb_table.cpp.
|
inline |
Definition at line 102 of file tkdb_table.h.
| bool has_column | ( | const tkstring & | _col_name | ) |
Definition at line 253 of file tkdb_table.cpp.
| void load | ( | ) |
resets column values and ends the select statement
Definition at line 105 of file tkdb_table.cpp.
| bool next | ( | ) |
executes the select statement
Definition at line 183 of file tkdb_table.cpp.
| tkdb_table & operator= | ( | const tkdb_table & | _other | ) |
Definition at line 46 of file tkdb_table.cpp.
|
noexcept |
Definition at line 73 of file tkdb_table.cpp.
|
inline |
Definition at line 104 of file tkdb_table.h.
| void print | ( | const tkstring & | _opt = "" | ) |
Definition at line 125 of file tkdb_table.cpp.
| void print_columns | ( | const tkstring & | _opt = "" | ) |
Definition at line 131 of file tkdb_table.cpp.
| void print_rows | ( | const char * | _selection, |
| const char * | _properties = "*" ) |
Definition at line 143 of file tkdb_table.cpp.
| void push_dummy_row | ( | ) |
Definition at line 378 of file tkdb_table.cpp.
| void push_row | ( | ) |
Definition at line 270 of file tkdb_table.cpp.
| void read_measure | ( | measure_data_struct & | _struct, |
| const measure_columns & | _columns ) |
Definition at line 423 of file tkdb_table.cpp.
| void read_measure | ( | measure_data_struct & | _struct, |
| const tkstring & | _col_base_name ) |
Definition at line 398 of file tkdb_table.cpp.
| void reset_column_values | ( | ) |
Definition at line 264 of file tkdb_table.cpp.
| void update_row | ( | const tkstring & | _where | ) |
Definition at line 336 of file tkdb_table.cpp.
| void write_to_database | ( | ) |
Definition at line 359 of file tkdb_table.cpp.