KexiDB::DriverPrivate Class Reference
#include <driver_p.h>
Detailed Description
Private driver's data members. Available for implementation.
Definition at line 142 of file driver_p.h.
Public Member Functions | |
| DriverPrivate () | |
| virtual | ~DriverPrivate () |
| void | initKexiKeywords () |
| void | initDriverKeywords (const char *keywords[], int hashSize) |
Public Attributes | |
| QPtrDict< Connection > | connections |
| QString | fileDBDriverMimeType |
| KService * | service |
| bool | isFileDriver: 1 |
| bool | isDBOpenedAfterCreate: 1 |
| int | features |
| QValueVector< QString > | typeNames |
| real type names for this engine | |
| QMap< QCString, QVariant > | properties |
| QMap< QCString, QString > | propertyCaptions |
| AdminTools * | adminTools |
| QAsciiDict< bool > * | driverSQLDict |
Static Public Attributes | |
| static QAsciiDict< bool > * | kexiSQLDict = 0 |
| static const char * | kexiSQLKeywords [] |
Protected Member Functions | |
| void | initInternalProperties () |
Friends | |
| class | DriverManagerInternal |
Constructor & Destructor Documentation
|
|
Definition at line 38 of file driver_p.cpp. References adminTools, driverSQLDict, kexiSQLDict, properties, and propertyCaptions. |
|
|
Definition at line 93 of file driver_p.cpp. References adminTools, and driverSQLDict. |
Member Function Documentation
|
||||||||||||
|
Initialise the dictionary of driver-specific keywords used for escaping. hashSize is the number of buckets to use in the dictionary.
Definition at line 111 of file driver_p.cpp. References driverSQLDict. Referenced by KexiDB::Driver::initSQLKeywords(). |
|
|
Used by driver manager to initialize properties taken using internal driver flags. Definition at line 56 of file driver_p.cpp. References features, fileDBDriverMimeType, KexiDB::Driver::IgnoreTransactions, isFileDriver, KexiDB::Driver::MultipleTransactions, KexiDB::Driver::NestedTransactions, properties, propertyCaptions, KexiDB::Driver::SingleTransactions, and KexiDB::version(). Referenced by KexiDB::DriverManagerInternal::driver(). |
|
|
Initialise the dictionary of Kexi SQL keywords used for escaping. Definition at line 100 of file driver_p.cpp. References kexiSQLDict, and kexiSQLKeywords. |
Friends And Related Function Documentation
|
|
Definition at line 239 of file driver_p.h. |
Member Data Documentation
|
|
Provides a number of database administration tools for the driver. Definition at line 202 of file driver_p.h. Referenced by KexiDB::Driver::adminTools(), DriverPrivate(), and ~DriverPrivate(). |
|
|
Definition at line 148 of file driver_p.h. Referenced by KexiDB::Driver::connectionsList(), KexiDB::Driver::createConnection(), KexiDB::Connection::destroy(), and KexiDB::Driver::removeConnection(). |
|
|
Driver-specific SQL keywords that need to be escaped if used as an identifier (e.g. for a table or column name) that aren't also Kexi SQL keywords. These don't neccesarily need to be escaped when displayed by the front-end, because they won't confuse the parser. However, they do need to be escaped before sending to the DB-backend which will have it's own parser.
Definition at line 222 of file driver_p.h. Referenced by DriverPrivate(), KexiDB::Driver::escapeIdentifier(), initDriverKeywords(), KexiDB::Driver::initSQLKeywords(), and ~DriverPrivate(). |
|
|
Features (like transactions, etc.) supported by this driver (sum of selected Features enum items). This member should be filled in driver implementation's constructor (by default m_features==NoFeatures). Definition at line 186 of file driver_p.h. Referenced by KexiDB::Connection::beginAutoCommitTransaction(), KexiDB::Connection::beginTransaction(), KexiDB::Connection::commitAutoCommitTransaction(), KexiDB::Connection::commitTransaction(), KexiDB::Driver::features(), initInternalProperties(), KexiDB::Connection::rollbackTransaction(), KexiDB::Connection::setAutoCommit(), KexiDB::Connection::setDefaultTransaction(), KexiDB::SQLiteDriver::SQLiteDriver(), and KexiDB::Driver::transactionsSupported(). |
|
|
Name of MIME type of files handled by this driver if it is a file-based database's driver (equal X-Kexi-FileDBDriverMime service property) Definition at line 158 of file driver_p.h. Referenced by KexiDB::DriverManagerInternal::driver(), KexiDB::Driver::fileDBDriverMimeType(), and initInternalProperties(). |
|
|
Internal constant flag: Set this in subclass if after successful drv_createDatabased() database is in opened state (as after useDatabase()). For most engines this is not true. Definition at line 169 of file driver_p.h. Referenced by KexiDB::Connection::createDatabase(), and KexiDB::SQLiteDriver::SQLiteDriver(). |
|
|
Internal constant flag: Set this in subclass if driver is a file driver Definition at line 164 of file driver_p.h. Referenced by KexiDB::Driver::createConnection(), initInternalProperties(), KexiDB::Driver::isFileDriver(), and KexiDB::SQLiteDriver::SQLiteDriver(). |
|
|
Kexi SQL keywords that need to be escaped if used as an identifier (e.g. for a table or column name). These keywords will be escaped by the front-end, even if they are not recognised by the backend to provide UI consistency and to allow DB migration without changing the queries.
Definition at line 29 of file driver_p.cpp. Referenced by DriverPrivate(), KexiDB::Driver::escapeIdentifier(), and initKexiKeywords(). |
|
|
Definition at line 12 of file keywords.cpp. Referenced by initKexiKeywords(). |
|
|
Driver properties dictionary (indexed by name), useful for presenting properties to the user. Set available properties here in driver implementation. Definition at line 194 of file driver_p.h. Referenced by DriverPrivate(), initInternalProperties(), KexiDB::Driver::propertyNames(), KexiDB::Driver::propertyValue(), and KexiDB::SQLiteDriver::SQLiteDriver(). |
|
|
i18n'd captions for properties. You do not need to set predefined properties' caption in driver implementation -it's done automatically. Definition at line 199 of file driver_p.h. Referenced by DriverPrivate(), initInternalProperties(), and KexiDB::Driver::propertyCaption(). |
|
|
Info about the driver as a service. Definition at line 161 of file driver_p.h. Referenced by KexiDB::DriverManagerInternal::driver(), and KexiDB::Driver::service(). |
|
|
real type names for this engine
Definition at line 189 of file driver_p.h. Referenced by KexiDB::SQLiteDriver::SQLiteDriver(), KexiDB::pqxxSqlDriver::sqlTypeName(), and KexiDB::Driver::sqlTypeName(). |
The documentation for this class was generated from the following files:
