kexi
KexiDB::SQLiteDriver Class Reference
#include <sqlitedriver.h>
Inheritance diagram for KexiDB::SQLiteDriver:

Detailed Description
SQLite database driver.
Definition at line 35 of file sqlitedriver.h.
Public Member Functions | |
SQLiteDriver (QObject *parent, const char *name, const QStringList &args=QStringList()) | |
virtual | ~SQLiteDriver () |
virtual bool | isSystemObjectName (const QString &n) const |
virtual bool | isSystemDatabaseName (const QString &) const |
virtual QString | escapeString (const QString &str) const |
virtual QCString | escapeString (const QCString &str) const |
virtual QString | escapeBLOB (const QByteArray &array) const |
Protected Member Functions | |
virtual QString | drv_escapeIdentifier (const QString &str) const |
virtual QCString | drv_escapeIdentifier (const QCString &str) const |
virtual Connection * | drv_createConnection (ConnectionData &conn_data) |
virtual AdminTools * | drv_createAdminTools () const |
virtual bool | drv_isSystemFieldName (const QString &n) const |
Protected Attributes | |
SQLiteDriverPrivate * | dp |
Member Function Documentation
bool SQLiteDriver::isSystemObjectName | ( | const QString & | n | ) | const [virtual] |
- Returns:
- true if n is a system object name; for this driver any object with name prefixed with "sqlite_" is considered as system object.
Reimplemented from KexiDB::Driver.
Definition at line 113 of file sqlitedriver.cpp.
virtual bool KexiDB::SQLiteDriver::isSystemDatabaseName | ( | const QString & | ) | const [inline, virtual] |
- Returns:
- false for this driver.
Implements KexiDB::Driver.
Definition at line 51 of file sqlitedriver.h.
QString SQLiteDriver::escapeString | ( | const QString & | str | ) | const [virtual] |
Escape a string for use as a value.
Implements KexiDB::Driver.
Definition at line 125 of file sqlitedriver.cpp.
QCString SQLiteDriver::escapeString | ( | const QCString & | str | ) | const [virtual] |
This is overloaded version of escapeString( const QString& str ) to be implemented in the same way.
Implements KexiDB::Driver.
Definition at line 130 of file sqlitedriver.cpp.
QString SQLiteDriver::escapeBLOB | ( | const QByteArray & | array | ) | const [virtual] |
Escape BLOB value array.
Implements KexiDB::Driver.
Definition at line 135 of file sqlitedriver.cpp.
QString SQLiteDriver::drv_escapeIdentifier | ( | const QString & | str | ) | const [protected, virtual] |
Driver-specific SQL string escaping. This method is used by escapeIdentifier(). Implement escaping for any character like " or ' as your database engine requires. Do not append or prepend any quotation marks characters - it is automatically done by escapeIdentifier() using DriverBehaviour::QUOTATION_MARKS_FOR_IDENTIFIER.
Implements KexiDB::Driver.
Definition at line 140 of file sqlitedriver.cpp.
QCString SQLiteDriver::drv_escapeIdentifier | ( | const QCString & | str | ) | const [protected, virtual] |
This is overloaded version of drv_escapeIdentifier( const QString& str ) to be implemented in the same way.
Implements KexiDB::Driver.
Definition at line 145 of file sqlitedriver.cpp.
KexiDB::Connection * SQLiteDriver::drv_createConnection | ( | ConnectionData & | conn_data | ) | [protected, virtual] |
For reimplemenation: creates and returns connection object with additional structures specific for a given driver. Connection object should inherit Connection and have a destructor that descructs all allocated driver-dependent connection structures.
Implements KexiDB::Driver.
Definition at line 108 of file sqlitedriver.cpp.
bool SQLiteDriver::drv_isSystemFieldName | ( | const QString & | n | ) | const [protected, virtual] |
- Returns:
- true if n is a system field name; for this driver fields with name equal "_ROWID_" is considered as system field.
Implements KexiDB::Driver.
Definition at line 118 of file sqlitedriver.cpp.
The documentation for this class was generated from the following files: