KDb
SqliteDriver.cpp
86 beh->typeNames[KDbField::Date] = QLatin1String("Date"); // In fact date/time types could be declared as datetext etc.
87 beh->typeNames[KDbField::DateTime] = QLatin1String("DateTime"); // to force text affinity..., see https://sqlite.org/datatype3.html
180 s += QLatin1Char('(') + args.arg(i).toString(this, params, callStack) + QLatin1String(") ") + collationSql();
199 static KDbEscapedString floorRandomStatic2("))*(RANDOM()+9223372036854775807)/18446744073709551615 AS INT))");
An interface containing a set of tools for database administration.
Definition KDbAdmin.h:31
Database specific connection data, e.g. host, port.
Definition KDbConnectionData.shared.h:36
Generic options for a single connection. The options are accessible using key/value pairs....
Definition KDbConnectionOptions.h:36
Provides database connection, allowing queries and data modification.
Definition KDbConnection.h:52
QString AUTO_INCREMENT_FIELD_OPTION
"AUTO_INCREMENT" by default, used as add-in word to field definition May be also used as full definit...
Definition KDbDriverBehavior.h:63
bool SELECT_1_SUBQUERY_SUPPORTED
Definition KDbDriverBehavior.h:192
bool AUTO_INCREMENT_REQUIRES_PK
Definition KDbDriverBehavior.h:81
KDbEscapedString GET_TABLE_NAMES_SQL
SQL statement used to obtain list of physical table names.
Definition KDbDriverBehavior.h:229
char OPENING_QUOTATION_MARK_BEGIN_FOR_IDENTIFIER
Definition KDbDriverBehavior.h:123
QString AUTO_INCREMENT_PK_FIELD_OPTION
"AUTO_INCREMENT PRIMARY KEY" by default, used as add-in word to field definition May be also used as ...
Definition KDbDriverBehavior.h:67
bool IS_DB_OPEN_AFTER_CREATE
Definition KDbDriverBehavior.h:183
bool CONNECTION_REQUIRED_TO_CREATE_DB
Definition KDbDriverBehavior.h:156
bool SPECIAL_AUTO_INCREMENT_DEF
Definition KDbDriverBehavior.h:77
bool CONNECTION_REQUIRED_TO_DROP_DB
Definition KDbDriverBehavior.h:164
QString AUTO_INCREMENT_TYPE
"" by default, used as type string for autoinc.
Definition KDbDriverBehavior.h:71
char CLOSING_QUOTATION_MARK_BEGIN_FOR_IDENTIFIER
Definition KDbDriverBehavior.h:128
bool CONNECTION_REQUIRED_TO_CHECK_DB_EXISTENCE
Definition KDbDriverBehavior.h:147
bool _1ST_ROW_READ_AHEAD_REQUIRED_TO_KNOW_IF_THE_RESULT_IS_EMPTY
Definition KDbDriverBehavior.h:188
KDbEscapedString toString(const KDbDriver *driver, KDbQuerySchemaParameterValueListIterator *params=nullptr, KDb::ExpressionCallStack *callStack=nullptr) const
Definition KDbExpression.cpp:469
static KDbEscapedString toString(const QString &name, const KDbDriver *driver, const KDbNArgExpression &args, KDbQuerySchemaParameterValueListIterator *params, KDb::ExpressionCallStack *callStack)
Definition KDbFunctionExpression.cpp:1361
The KDbNArgExpression class represents a base class N-argument expression.
Definition KDbExpression.h:213
An iterator for a list of values of query schema parameters Allows to iterate over parameters and ret...
Definition KDbQuerySchemaParameter.shared.h:50
void insert(const QByteArray &name, const QVariant &value, const QString &caption=QString())
Inserts property with a given name, value and caption.
Definition KDbUtils.cpp:660
#define K_PLUGIN_CLASS_WITH_JSON(classname, jsonFile)
An interface containing a set of tools for SQLite database administration.
Definition SqliteAdmin.h:28
SQLite-specific connection Following connection options are supported (see KDbConnectionOptions):
Definition SqliteConnection.h:37
QString drv_escapeIdentifier(const QString &str) const override
Definition SqliteDriver.cpp:142
KDbConnection * drv_createConnection(const KDbConnectionData &connData, const KDbConnectionOptions &options) override
Definition SqliteDriver.cpp:103
KDbEscapedString collationSql() const override
Definition SqliteDriver.cpp:157
bool isSystemObjectName(const QString &n) const override
Definition SqliteDriver.cpp:109
KDbEscapedString greatestOrLeastFunctionToString(const QString &name, const KDbNArgExpression &args, KDbQuerySchemaParameterValueListIterator *params, KDb::ExpressionCallStack *callStack) const override
Generates native (driver-specific) GREATEST() and LEAST() function calls.
Definition SqliteDriver.cpp:162
KDbAdminTools * drv_createAdminTools() const override
Definition SqliteDriver.cpp:152
bool isSystemDatabaseName(const QString &) const override
Definition SqliteDriver.cpp:114
bool drv_isSystemFieldName(const QString &n) const override
Definition SqliteDriver.cpp:120
KDbEscapedString randomFunctionToString(const KDbNArgExpression &args, KDbQuerySchemaParameterValueListIterator *params, KDb::ExpressionCallStack *callStack) const override
Generates native (driver-specific) RANDOM() and RANDOM(X,Y) function calls.
Definition SqliteDriver.cpp:187
KDbEscapedString escapeBLOB(const QByteArray &array) const override
Escape BLOB value array.
Definition SqliteDriver.cpp:137
KDbEscapedString ceilingOrFloorFunctionToString(const QString &name, const KDbNArgExpression &args, KDbQuerySchemaParameterValueListIterator *params, KDb::ExpressionCallStack *callStack) const override
Generates native (driver-specific) CEILING() and FLOOR() function calls.
Definition SqliteDriver.cpp:205
KDbEscapedString escapeString(const QString &str) const override
Escape a string for use as a value.
Definition SqliteDriver.cpp:127
KDB_EXPORT QString escapeBLOB(const QByteArray &array, BLOBEscapingType type)
QByteArray & replace(QByteArrayView before, QByteArrayView after)
int compare(QLatin1StringView s1, const QString &s2, Qt::CaseSensitivity cs)
QString & replace(QChar before, QChar after, Qt::CaseSensitivity cs)
bool startsWith(QChar c, Qt::CaseSensitivity cs) const const
CaseInsensitive
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.