|
|
Central access point to all functionality of the single database.
That means it provides a list of all queries and tables, and is able to execute a command query and to return a recordset for a given query.
Tables and queries can be accessed by name, and the class can provide collection objects for both.
|
~ |
[virtual]
TablePtr |
[pure virtual]
creates a new table for the current database. please note that the table is not yet part of the database until you call KDB::Table::create
TablePtr |
returns an existing table by name, or 0L if the table does not exists
Tables |
return the list of available tables
void |
[pure virtual]
removes a table from the database. This means that the table is dropped, and all the content is erased
QueryPtr |
[pure virtual]
creates a new query
Parameters:
name | this is the name of the query |
SQL | this is the sql executed by the query. if it is not given, the query can be built with addTable, addField and so on |
QueryPtr |
returns an existing query by name, or 0L if the query does not exists
Queries |
return the list of available queries
void |
[pure virtual]
removes a query from the database.
RecordsetPtr |
[pure virtual]
creates a recordset based on a given query. if the query fails, 0L is returned. you can then check errorMessage() to get a specific error message
int |
[pure virtual]
exec a command query. returns the number of records affected, or -1 if there is an error executing the query
void |
[pure virtual]
void |
[pure virtual]
bool |
Tables |
[protected]
Queries |
[protected]
bool |
[protected]
QString |
[protected]
Generated by: pradu@server.rete.casa on Fri Jul 28 15:15:55 2000, using kdoc 2.0a36. |