kexi
KexiDB::pqxxSqlConnection Class Reference
#include <pqxxconnection.h>
Inheritance diagram for KexiDB::pqxxSqlConnection:

Detailed Description
- Author:
- Adam Pigg
Definition at line 48 of file pqxxconnection.h.
Public Member Functions | |
virtual | ~pqxxSqlConnection () |
virtual Cursor * | prepareQuery (const QString &statement=QString::null, uint cursor_options=0) |
virtual Cursor * | prepareQuery (QuerySchema &query, uint cursor_options=0) |
virtual PreparedStatement::Ptr | prepareStatement (PreparedStatement::StatementType type, FieldList &fields) |
Protected Member Functions | |
pqxxSqlConnection (Driver *driver, ConnectionData &conn_data) | |
virtual bool | drv_isDatabaseUsed () const |
virtual bool | drv_connect () |
virtual bool | drv_disconnect () |
virtual bool | drv_getDatabasesList (QStringList &list) |
virtual bool | drv_createDatabase (const QString &dbName=QString::null) |
virtual bool | drv_useDatabase (const QString &dbName=QString::null, bool *cancelled=0, MessageHandler *msgHandler=0) |
virtual bool | drv_closeDatabase () |
virtual bool | drv_dropDatabase (const QString &dbName=QString::null) |
virtual bool | drv_executeSQL (const QString &statement) |
virtual Q_ULLONG | drv_lastInsertRowID () |
virtual bool | drv_getTablesList (QStringList &list) |
virtual bool | drv_containsTable (const QString &tableName) |
virtual TransactionData * | drv_beginTransaction () |
virtual bool | drv_commitTransaction (TransactionData *) |
virtual bool | drv_rollbackTransaction (TransactionData *) |
virtual int | serverResult () |
virtual QString | serverResultName () |
virtual void | drv_clearServerResult () |
virtual QString | serverErrorMsg () |
Protected Attributes | |
pqxxSqlConnectionInternal * | d |
Friends | |
class | pqxxSqlDriver |
class | pqxxSqlCursor |
class | pqxxTransactionData |
Member Function Documentation
|
Note for driver developers: begins new transaction and returns handle to it. Default implementation just executes "BEGIN" sql statement and returns just empty data (TransactionData object). Drivers that do not support transactions (see Driver::features()) do never call this method. Reimplement this method if you need to do something more (e.g. if you driver will support multiple transactions per connection). Make subclass of TransactionData (declared in transaction.h) and return object of this subclass. You should return NULL if any error occured. Do not check anything in connection (isConnected(), etc.) - all is already done. Reimplemented from KexiDB::Connection. Definition at line 359 of file pqxxconnection.cpp. |
|
Clears number of last server operation's result stored as a single integer. Formally, this integer should be set to value that means "NO ERRORS" or "OK". This method is called by clearError(). For reimplementation. By default does nothing.
Reimplemented from KexiDB::Object. Definition at line 418 of file pqxxconnection.cpp. |
|
For reimplemenation: closes previously opened database using connection. Implements KexiDB::Connection. Definition at line 219 of file pqxxconnection.cpp. |
|
Reimplemented from KexiDB::Connection. Definition at line 364 of file pqxxconnection.cpp. |
|
For reimplemenation: connects to database
Implements KexiDB::Connection. Definition at line 96 of file pqxxconnection.cpp. |
|
LOW LEVEL METHOD. For reimplemenation: returns true if table with name tableName exists in the database.
Implements KexiDB::Connection. Definition at line 330 of file pqxxconnection.cpp. |
|
For reimplemenation: creates new database using connection Implements KexiDB::Connection. Definition at line 135 of file pqxxconnection.cpp. |
|
For reimplemenation: disconnects database
Implements KexiDB::Connection. Definition at line 105 of file pqxxconnection.cpp. |
|
For reimplemenation: drops database from the server using connection. After drop, database shouldn't be accessible anymore. Implements KexiDB::Connection. Definition at line 238 of file pqxxconnection.cpp. |
|
Executes query statement, but without returning resulting rows (used mostly for functional queries). Only use this method if you really need. Implements KexiDB::Connection. Definition at line 251 of file pqxxconnection.cpp. |
|
For reimplemenation: loads list of databases' names available for this connection and adds these names to list. If your server is not able to offer such a list, consider reimplementing drv_databaseExists() instead. The method should return true only if there was no error on getting database names list from the server. Default implementation puts empty list into list and returns true. Reimplemented from KexiDB::Connection. Definition at line 113 of file pqxxconnection.cpp. |
|
LOW LEVEL METHOD. For reimplemenation: loads low-level list of table names available for this connection. The names are in lower case. The method should return true only if there was no error on getting database names list from the server. Implements KexiDB::Connection. Definition at line 337 of file pqxxconnection.cpp. |
|
Reimplemented from KexiDB::Connection. Definition at line 300 of file pqxxconnection.cpp. |
|
Implements KexiDB::Connection. Definition at line 311 of file pqxxconnection.cpp. |
|
Note for driver developers: begins new transaction and returns handle to it. Default implementation just executes "ROLLBACK" sql statement and returns true on success.
Reimplemented from KexiDB::Connection. Definition at line 386 of file pqxxconnection.cpp. |
|
For reimplemenation: opens existing database using connection
Implements KexiDB::Connection. Definition at line 147 of file pqxxconnection.cpp. |
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Statement is build from data provided by table schema, it is like "select * from table_name". Implements KexiDB::Connection. Definition at line 72 of file pqxxconnection.cpp. |
|
KexiDB library offers detailed error numbers using errorNum() and detailed error i18n'd messages using errorMsg() - these informations are not engine-dependent (almost). Use this in your application to give users more information on what's up. This method returns (non-i18n'd !) engine-specific error message, if there was any error during last server-side operation, otherwise null string. Reimplement this for your driver
Reimplemented from KexiDB::Object. Definition at line 423 of file pqxxconnection.cpp. |
|
Reimplemented from KexiDB::Object. Definition at line 408 of file pqxxconnection.cpp. |
|
Reimplemented from KexiDB::Object. Definition at line 413 of file pqxxconnection.cpp. |
Member Data Documentation
|
for future extensions
Reimplemented from KexiDB::Connection. Definition at line 90 of file pqxxconnection.h. |
The documentation for this class was generated from the following files: