kexi
KexiDB::SQLiteConnection Class Reference
#include <sqliteconnection.h>
Inheritance diagram for KexiDB::SQLiteConnection:

Detailed Description
sqlite-specific connection
Definition at line 37 of file sqliteconnection.h.
Public Member Functions | |
virtual | ~SQLiteConnection () |
virtual Cursor * | prepareQuery (const QString &statement, uint cursor_options=0) |
virtual Cursor * | prepareQuery (QuerySchema &query, uint cursor_options=0) |
virtual PreparedStatement::Ptr | prepareStatement (PreparedStatement::StatementType type, FieldList &fields) |
virtual bool | isReadOnly () const |
Protected Member Functions | |
SQLiteConnection (Driver *driver, ConnectionData &conn_data) | |
virtual bool | drv_connect () |
virtual bool | drv_disconnect () |
virtual bool | drv_getDatabasesList (QStringList &list) |
virtual bool | drv_getTablesList (QStringList &list) |
virtual bool | drv_containsTable (const QString &tableName) |
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 int | serverResult () |
virtual QString | serverResultName () |
virtual QString | serverErrorMsg () |
virtual void | drv_clearServerResult () |
Protected Attributes | |
SQLiteConnectionInternal * | d |
Friends | |
class | SQLiteDriver |
class | SQLiteCursor |
Constructor & Destructor Documentation
|
Used by driver Definition at line 85 of file sqliteconnection.cpp. |
Member Function Documentation
|
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 303 of file sqliteconnection.cpp. |
|
For reimplemenation: closes previously opened database using connection. Implements KexiDB::Connection. Definition at line 230 of file sqliteconnection.cpp. |
|
For reimplemenation: connects to database
Implements KexiDB::Connection. Definition at line 101 of file sqliteconnection.cpp. |
|
LOW LEVEL METHOD. For reimplemenation: returns true if table with name tableName exists in the database.
Implements KexiDB::Connection. Definition at line 120 of file sqliteconnection.cpp. |
|
Creates new database using connection. Note: Do not pass dbName arg because for file-based engine (that has one database per connection) it is defined during connection. Implements KexiDB::Connection. Definition at line 148 of file sqliteconnection.cpp. |
|
For reimplemenation: disconnects database
Implements KexiDB::Connection. Definition at line 107 of file sqliteconnection.cpp. |
|
Drops database from the server using connection. After drop, database shouldn't be accessible anymore, so database file is just removed. See note from drv_useDatabase(). Implements KexiDB::Connection. Definition at line 239 of file sqliteconnection.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 261 of file sqliteconnection.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 sqliteconnection.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 127 of file sqliteconnection.cpp. |
|
Implements KexiDB::Connection. Definition at line 282 of file sqliteconnection.cpp. |
|
Opens existing database using connection. Do not pass dbName arg because for file-based engine (that has one database per connection) it is defined during connection. If you pass it, database file name will be changed. Implements KexiDB::Connection. Definition at line 160 of file sqliteconnection.cpp. |
|
Reimplemented to provide real read-only flag of the connection Reimplemented from KexiDB::Connection. Definition at line 328 of file sqliteconnection.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 251 of file sqliteconnection.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 315 of file sqliteconnection.cpp. |
|
Reimplemented from KexiDB::Object. Definition at line 287 of file sqliteconnection.cpp. |
|
Reimplemented from KexiDB::Object. Definition at line 292 of file sqliteconnection.cpp. |
Member Data Documentation
|
for future extensions
Reimplemented from KexiDB::Connection. Definition at line 99 of file sqliteconnection.h. |
The documentation for this class was generated from the following files: