#include <dbi.h>
Collaboration diagram for wx::DBI::Database:
Public Member Functions | |
Database () | |
Default ctor. | |
virtual | ~Database () |
dtor. | |
virtual void | Connect (const ConnectionInfo &cni)=0 |
Connect to the database. | |
virtual void | Disconnect ()=0 |
Disconnect from the database. | |
virtual bool | IsConnected ()=0 |
Is the database connected. | |
virtual void | Begin () |
Start a new transaction. | |
virtual void | Rollback () |
Rollback to the start of the transaction. | |
virtual void | Commit () |
Commit changes made since the start of the transaction. | |
virtual Statement * | Prepare (const wxString &sQuery)=0 |
Prepare a query. | |
virtual wxArrayString | GetDatabases ()=0 |
List all other databases on the same server as the currently connected database. | |
virtual bool | DatabaseExists (const wxString &sDatabaseName)=0 |
Indicates whether a certain database exists on the current server. | |
virtual wxArrayString | GetTables ()=0 |
Returns an array containing the names of tables in the database. | |
virtual bool | TableExists (const wxString &sTableName)=0 |
Indicates whether a certain table exists in the current databse. | |
Protected Attributes | |
ConnectionInfo | m_cni |
Define one (or more) of the wxDBI_XXXX flags to include the interfaces to specific database engines.
Definition at line 82 of file dbi.h.
|
Default ctor.
|
|
dtor. Implementations should call the Disconnect() method. |
|
Start a new transaction.
|
|
Commit changes made since the start of the transaction.
|
|
Connect to the database. Use the values in the ConnectionInfo hash to connect to the database. Normal connection parameters are:
|
|
Indicates whether a certain database exists on the current server.
|
|
Disconnect from the database.
|
|
List all other databases on the same server as the currently connected database.
|
|
Returns an array containing the names of tables in the database.
|
|
Is the database connected.
|
|
Prepare a query. Note that the returned Statement pointer must be destroyed with delete.
|
|
Rollback to the start of the transaction.
|
|
Indicates whether a certain table exists in the current databse.
|
|
|