hk_actionquery Class Reference

Action query (i.e. ALTER TABLE) with no result. More...

#include <hk_actionquery.h>

Inheritance diagram for hk_actionquery:

Inheritance graph
[legend]
Collaboration diagram for hk_actionquery:

Collaboration graph
[legend]
List of all members.

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)

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 &)

Protected Attributes

char * p_sql
unsigned long p_length

Friends

class hk_database
class hk_datasource

Detailed Description

Action query (i.e. ALTER TABLE) with no result.

Version:
Revision
1.15
Author:
Horst Knorr (hk_classes@knoda.org)
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.


Member Function Documentation

bool hk_actionquery::execute void   ) 
 

tries to execute the sql statement

Returns:
true if it was successful.

void hk_actionquery::set_sql const char *  s,
unsigned long  l
 

SQL-serverdependend SQL statement

Parameters:
s SQL statement.
l length of the field s. Maybe that there is somewhere in the SQL statement (i.e. BLOB field), so this is necessary.


The documentation for this class was generated from the following files:
Generated on Tue May 2 09:15:35 2006 for Databaseconnectionclasses by  doxygen 1.4.6