#include <odbc++/connection.h>
Class diagram for odbc::Connection:

| enum odbc::Connection::TransactionIsolation |
Transaction isolation constants.
| TRANSACTION_NONE | The data source does not support transactions. |
| TRANSACTION_READ_UNCOMMITTED | Dirty reads, non-repeatable reads and phantom reads can occur. |
| TRANSACTION_READ_COMMITTED | Non-repeatable and phantom reads can occur. |
| TRANSACTION_REPEATABLE_READ | Phantom reads can occur. |
| TRANSACTION_SERIALIZABLE | Simply no problems. |
virtual odbc::Connection::~Connection () [virtual]
|
Destructor.
Closes the connection
| void odbc::Connection::setAutoCommit (bool autoCommit) |
Sets the autocommit state of this connection.
| autoCommit |
true for on, false for off |
| DatabaseMetaData * odbc::Connection::getMetaData () |
Returns meta information for this connection.
Note that the returned object is 'owned' by this connection and should in no way be deleted by the caller.
| Statement * odbc::Connection::createStatement (int resultSetType, int resultSetConcurrency) |
Creates a non-prepared statement.
| PreparedStatement * odbc::Connection::prepareStatement (const std::string & sql) |
Create a prepared statement.
| sql |
The string to prepare, optionally containing parameter markers (?). |
| PreparedStatement * odbc::Connection::prepareStatement (const std::string & sql, int resultSetType, int resultSetConcurrency) |
Create a prepared statement.
| CallableStatement * odbc::Connection::prepareCall (const std::string & sql) |
Create a callable prepared statement.
| sql | The string to prepare, optionally containing parameter markers for input and/or output parameters |
| CallableStatement * odbc::Connection::prepareCall (const std::string & sql, int resultSetType, int resultSetConcurrency) |
Create a callable prepared statement.