|
|
Manages the connection state to a SQL engine.
Basically stores all authentication tokens and opens/closes connection as needed.
It is also a collection of database objects, allowing
|
[virtual]
bool |
Connect to the host. If username and password are missing, pops up a dialog to ask them. If the connection is open, nothing is actually done. Returns true if the connection has been succesfully opened, false otherwise.
void |
Disconnects from the host. all databases are closed. unless destructive == false, the connection is deleted right after the call
bool |
Returns true if a successful connection has been established.
bool |
Returns true if a the connection will be saved in config files
void |
sets the save status for this connection. If the save status is true, the connection will be saved in kdbrc
void |
Sets the user for this connection. The change will not take place until a disconnect/connect is made.
QString |
Returns the user for this connection.
QString |
Returns the plugin name of this connection.
void |
Sets the password for this connection. The change will not take place until a disconnect/connect is made. Passing QString::null will force the connection to ask for the password next time open is called.
QString |
Returns the password for this connection.
QString |
Returns the host name for this connection.
int |
Returns the port number for this connection.
QString |
Returns a complete description of the connection.
Database * |
Open a database by name.
Database * |
Return a database by name. If no database with this name exists it returns 0L.
Database * |
Creates a new database in the current connection.
bool |
Drops a database
DatabaseList |
Return a list of all available databases.
DatabaseIterator |
Return an iterator that points to the first database.
void |
saves this connection to the given config file, with an optional connection number. The config file must exists and must refer to the correct section.
void |
start a transaction for the current connection an error is raised if the underlying DBMS does not support transactions
void |
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 |
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 |
[slot]
void |
[signal]
void |
[signal]
void |
[signal]
void |
[signal]