Databaseconnectionclasses
0.5.3
|
Action query (i.e. ALTER TABLE) with no result. More...
#include <hk_actionquery.h>
Public Member Functions | |
enum_datasourcetypes | type (void) |
void | set_sql (const char *s, unsigned long l) |
void | set_sql (const hk_string &s, bool convertdelimiter=false) |
const char * | sql (void) |
unsigned long | length (void) |
bool | execute (void) |
![]() | |
virtual hk_string | name (void) const |
virtual void | set_name (const hk_string &n) |
virtual enum_datasourcetypes | type (void) const |
hk_string | identifierdelimiter (void) const |
hk_string | textdelimiter (void) const |
![]() | |
void | hkclassname (const hk_string &n) |
hk_string | hkclassname (void) const |
void | hkdebug (const hk_string &d) const |
void | hkdebug (const hk_string &d, const hk_string &e) const |
void | hkdebug (const hk_string &d, int i) const |
void | hkdebug (const hk_string &d, double i) const |
void | wanna_debug (bool d) |
bool | wanna_debug (void) const |
bool | generaldebug (void) |
virtual void | savedata (ostream &s) |
virtual void | loaddata (xmlNodePtr definition) |
Protected Member Functions | |
hk_actionquery (hk_database *db) | |
virtual bool | driver_specific_execute (void) |
virtual bool | driver_specific_sql (const char *s) |
virtual void | before_source_vanishes (void) |
void | print_sql (void) |
hk_string | sqlconvertdelimiter (const hk_string &) |
![]() | |
virtual void | before_connection_disconnects (void) |
virtual void | filelist_changes (listtype t) |
virtual bool | driver_specific_name (const hk_string &n) |
![]() | |
hk_interpreter * | new_interpreter (const hk_string &interpreter, hk_presentation *) |
Protected Attributes | |
const char * | p_sql |
unsigned long | p_length |
![]() | |
hk_string | p_name |
hk_string | p_sqltextdelimiter |
hk_string | p_identifierdelimiter |
Friends | |
class | hk_database |
class | hk_datasource |
Additional Inherited Members | |
![]() | |
enum | enum_datasourcetypes { ds_table, ds_query, ds_actionquery, ds_view, ds_unknown } |
![]() | |
enum | enum_interaction { noninteractive, interactive } |
enum | enum_measuresystem { cm, inch } |
enum | enum_tagtype { normaltag, mastertag } |
![]() | |
static bool | print_sqlstatements (void) |
static void | set_print_sqlstatements (bool p) |
![]() | |
static void | set_generaldebug (bool d) |
static hk_string | hk_translate (const hk_string &t) |
static void | show_warningmessage (const hk_string &m) |
static void | set_warningmessage (messagewindowtype *m) |
static bool | show_yesnodialog (const hk_string &m, bool default_value) |
static void | set_yesnodialog (yesno_dialogtype *d) |
static hk_string | show_stringvaluedialog (const hk_string &t) |
static void | set_stringvaluedialog (stringvalue_dialogtype *t) |
static void | set_translatefunction (translatefunctiontype *t) |
static void | set_filedialog (file_dialogtype *f) |
static hk_string | show_filedialog (const hk_string &f="", enum_operationmode m=file_open) |
static void | set_directorydialog (stringvalue_dialogtype *f) |
static hk_string | show_directorydialog (const hk_string &f="") |
static void | set_showpedantic (bool s) |
static bool | showpedantic (void) |
static void | set_measuresystem (enum_measuresystem) |
static enum_measuresystem | measuresystem (void) |
static xmlNodePtr | get_tagvalue (xmlNodePtr where, const hk_string &tag, hk_string &value, int position=1, enum_tagtype tagtype=normaltag) |
static xmlNodePtr | get_tagvalue (xmlNodePtr where, const hk_string &tag, unsigned long &value, int position=1) |
static xmlNodePtr | get_tagvalue (xmlNodePtr where, const hk_string &tag, unsigned int &value, int position=1) |
static xmlNodePtr | get_tagvalue (xmlNodePtr where, const hk_string &tag, long &value, int position=1) |
static xmlNodePtr | get_tagvalue (xmlNodePtr where, const hk_string &tag, int &value, int position=1) |
static xmlNodePtr | get_tagvalue (xmlNodePtr where, const hk_string &tag, bool &value, int position=1) |
static xmlNodePtr | get_tagvalue (xmlNodePtr &where, const hk_string &tag) |
static void | set_tagvalue (ostream &stream, const hk_string &tag, const hk_string &value) |
static void | set_tagvalue (ostream &stream, const hk_string &tag, unsigned long value) |
static void | set_tagvalue (ostream &stream, const hk_string &tag, unsigned int value) |
static void | set_tagvalue (ostream &stream, const hk_string &tag, long value) |
static void | set_tagvalue (ostream &stream, const hk_string &tag, int value) |
static void | set_tagvalue (ostream &stream, const hk_string &tag, bool value) |
static void | start_mastertag (ostream &stream, const hk_string &tag) |
static void | end_mastertag (ostream &stream, const hk_string &tag) |
static void | set_defaultdatetimeformat (const hk_string &timeformat, const hk_string &dateformat, const hk_string &datetimeformat) |
static hk_string | defaultdateformat (void) |
static hk_string | defaulttimeformat (void) |
static hk_string | defaultdatetimeformat (void) |
static void | save_preferences (void) |
static bool | runtime_only (void) |
static void | set_locale (const hk_string &locale) |
static hk_string | locale (void) |
static void | set_defaultdriver (const hk_string &d) |
static hk_string | defaultdriver (void) |
static void | set_default_automatic_data_update (bool) |
static bool | default_automatic_data_update (void) |
![]() | |
static bool | p_print_sqlstatements =false |
![]() | |
static hk_string | p_defaulttimeformat ="h:m:s" |
static hk_string | p_defaultdateformat ="D.M.Y" |
static hk_string | p_defaultdatetimeformat ="D.M.Y h:m:s" |
static bool | p_runtime_only =false |
Action query (i.e. ALTER TABLE) with no result.
In contrary to Result Queries (queries with a SELECT - SQL-statement) action queries manipulate data like ALTER TABLE or INSERT INTO. There is no resulting data.
bool hk_actionquery::execute | ( | void | ) |
tries to execute the sql statement
References hk_class::hkdebug().
Referenced by hk_connection::create_database(), hk_datasource::delete_rows(), and hk_database::delete_table().
void hk_actionquery::set_sql | ( | const char * | s, |
unsigned long | l | ||
) |
SQL-serverdependend SQL statement
s | SQL statement. |
l | length of the field s. Maybe that there is \0 somewhere in the SQL statement (i.e. BLOB field), so this is necessary. |
References hk_class::hkdebug().
Referenced by hk_connection::create_database(), hk_datasource::delete_rows(), and hk_database::delete_table().