|
|
This is the base class for the interaction between kdbcore and the various plugins. It should be subclassed by plugins, but should not be used by the client programs
|
|
|
[virtual]
void |
[virtual]
closes the connection to the database backend
bool |
[pure virtual]
opens the connection to the database backend
QStringList |
[pure virtual]
returns the list of the available databases for the current open connection
QStringList |
[pure virtual]
returns the list of the available tables for the current open database
RowList |
[pure virtual]
returns the list of the fields for the given table for the current open database. The rows must contain:
the only mandatory fields are field name, datatype and size. All other values can be present if the DBMS is able to give them
KDB_ULONG |
[pure virtual]
executes an SQL statement. The return value is the number of rows affected by the statement
bool |
[pure virtual]
creates an empty database
bool |
[pure virtual]
drops a database with all its content
bool |
[pure virtual]
creates a table with the characteristic of the given one
bool |
[pure virtual]
remove a table in the currend database deleting all its content
bool |
[pure virtual]
append a file to a table. the underlying DBMS must issue an alter here
bool |
[pure virtual]
remove a field from a table. the underlying DBMS must issue an alter here
bool |
[pure virtual]
change the definition of a field of the given table. the underlying DBMS must issue an alter here
Connector * |
[pure virtual]
clones the current object. If the object holds an open connection, the resulting connector must be open too.
bool |
[pure virtual]
set the operational database for the current connector. From this point all the methods will affect the selected database
DataType |
[pure virtual]
returns the corresponding KDB datatype for the given native one
QString |
[pure virtual]
returns the corresponding native datatype for the given KDB one
Handler * |
[pure virtual]
executes a select to the backend and returns an handler to the result
Query * |
[virtual]
Create a query object. Plugins can override some functions of the class Query to take advantage of some specific optimizations. This is entirely optional, default implementations with a meaningful behaviour are provided in the kdedb core library
void |
[pure virtual]
start a transaction for the current connection an error is raised if the underlying DBMS does not support transactions
void |
[pure virtual]
end the current transaction and save all the changes to the database. an error is raised if the underlying DBMS does not support transactions or if there isn't any transaction started
void |
[pure virtual]
end the current transaction and drop all changes made up to now. an error is raised if the underlying DBMS does not support transactions or if there isn't any transaction started
void |
void |
void |
void |
QString |
[const]
int |
[const]
QString |
[const]
QString |
[const]
bool |
[const]
void |
[ protected: ]
must be called by subclasses when a connection to the backend is established