#include <query.h>
Inheritance diagram for KDB::Query:

Public Methods | |
| ~Query () | |
| void | addField (const QString &table, const QString &name) |
| append a new field to the output list of the query it works only in design mode. | |
| void | addTable (const QString &name) |
| add a table to the existing output list of tables. | |
| void | addCondition (const QString &condition) |
| add a condition (where clause, but without 'where') to the query. | |
| QString | SQL () |
| return the SQL code associated to the query. More... | |
| RecordsetPtr | openRecordset () |
| creates a recordset based on this query. | |
| bool | isDesign () |
| returns true if the query is in design mode. | |
Protected Methods | |
| Query ( Connector * conn, const char * name, QObject *parent = 0, const QString &sql = QString::null ) | |
| virtual void | buildSQL () |
| this function will create the SQL string to pass to the DBMS engine. More... | |
Friends | |
| class | Database |
Through this object we access the fields and parameters of the query, if any.
WARNING: this is unfinished: will gain query type (select, insert, update, delete) and parameter parsing and a lot of other stuff !!!
|
|
|
|
|
|
|
|
return the SQL code associated to the query. if the query is in design mode, it will build with the actual tables, fields and conditions |
|
|
add a condition (where clause, but without 'where') to the query.
|
|
|
append a new field to the output list of the query it works only in design mode.
|
|
|
add a table to the existing output list of tables.
|
|
|
this function will create the SQL string to pass to the DBMS engine. It can be overridden by special types of queries ?? dunno if it will help |
|
|
returns true if the query is in design mode.
|
|
|
creates a recordset based on this query.
|
|
|
|
1.2.1 written by Dimitri van Heesch,
© 1997-2000