Kexi API Documentation (2.0 alpha)

KexiDB::SQLiteDriver Class Reference

#include <sqlitedriver.h>

Inheritance diagram for KexiDB::SQLiteDriver:

KexiDB::Driver KexiDB::Object List of all members.

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
 Escape a string for use as a value.
virtual QCString escapeString (const QCString &str) const
virtual QString escapeBLOB (const QByteArray &array) const
 Escape BLOB value array.

Protected Member Functions

virtual QString drv_escapeIdentifier (const QString &str) const
virtual QCString drv_escapeIdentifier (const QCString &str) const
virtual Connectiondrv_createConnection (ConnectionData &conn_data)
virtual AdminToolsdrv_createAdminTools () const
virtual bool drv_isSystemFieldName (const QString &n) const

Protected Attributes

SQLiteDriverPrivate * dp


Constructor & Destructor Documentation

SQLiteDriver::SQLiteDriver QObject *  parent,
const char *  name,
const QStringList &  args = QStringList()
 

Definition at line 52 of file sqlitedriver.cpp.

References KexiDB::DriverBehaviour::_1ST_ROW_READ_AHEAD_REQUIRED_TO_KNOW_IF_THE_RESULT_IS_EMPTY, KexiDB::DriverBehaviour::AUTO_INCREMENT_FIELD_OPTION, KexiDB::DriverBehaviour::AUTO_INCREMENT_PK_FIELD_OPTION, KexiDB::DriverBehaviour::AUTO_INCREMENT_REQUIRES_PK, KexiDB::DriverBehaviour::AUTO_INCREMENT_TYPE, KexiDB::Driver::beh, KexiDB::Field::BigInteger, KexiDB::Field::BLOB, KexiDB::Field::Boolean, KexiDB::Field::Byte, KexiDB::Driver::CompactingDatabaseSupported, KexiDB::Driver::CursorForward, KexiDB::Driver::d, KexiDB::Field::Date, KexiDB::Field::DateTime, KexiDB::Field::Double, KexiDB::DriverPrivate::features, KexiDB::Field::Float, KexiDB::Driver::initSQLKeywords(), KexiDB::Field::Integer, KexiDB::DriverPrivate::isDBOpenedAfterCreate, KexiDB::DriverPrivate::isFileDriver, KexiDB::Field::LongText, KexiDB::DriverPrivate::properties, KexiDB::DriverBehaviour::QUOTATION_MARKS_FOR_IDENTIFIER, KexiDB::DriverBehaviour::ROW_ID_FIELD_NAME, KexiDB::DriverBehaviour::SELECT_1_SUBQUERY_SUPPORTED, KexiDB::Field::ShortInteger, KexiDB::Driver::SingleTransactions, KexiDB::DriverBehaviour::SPECIAL_AUTO_INCREMENT_DEF, KexiDB::DriverBehaviour::SQL_KEYWORDS, sqlite_libencoding(), sqlite_libversion(), KexiDB::Field::Text, KexiDB::Field::Time, and KexiDB::DriverPrivate::typeNames.

SQLiteDriver::~SQLiteDriver  )  [virtual]
 

Definition at line 101 of file sqlitedriver.cpp.

References dp.


Member Function Documentation

AdminTools * SQLiteDriver::drv_createAdminTools  )  const [protected, virtual]
 

Reimplemented from KexiDB::Driver.

Definition at line 150 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.

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.

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.

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.

QString SQLiteDriver::escapeBLOB const QByteArray &  array  )  const [virtual]
 

Escape BLOB value array.

Implements KexiDB::Driver.

Definition at line 135 of file sqlitedriver.cpp.

References KexiDB::BLOBEscapeXHex, and KexiDB::escapeBLOB().

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::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.

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.

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.

References KexiDB::Driver::isSystemObjectName().


Member Data Documentation

SQLiteDriverPrivate* KexiDB::SQLiteDriver::dp [protected]
 

Definition at line 72 of file sqlitedriver.h.

Referenced by ~SQLiteDriver().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for Kexi 2.0 alpha.
Documentation copyright © 2002-2007 the Kexi Team.
Generated on Tue Apr 1 20:50:43 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003