KDb
KDbDriver.cpp
190KDbEscapedString valueToSqlInternal(const KDbDriver *driver, KDbField::Type ftype, const QVariant& v)
387 return KDbFunctionExpression::toString(QLatin1String("UNICODE"), this, args, params, callStack);
An interface containing a set of tools for database administration.
Definition KDbAdmin.h:31
The KDbBinaryExpression class represents binary operation.
Definition KDbExpression.h:341
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
static QStringList kdbSystemTableNames()
Definition KDbConnection.cpp:1044
Provides information about a single driver plugin.
Definition KDbDriverMetaData.h:29
virtual KDbEscapedString greatestOrLeastFunctionToString(const QString &name, const KDbNArgExpression &args, KDbQuerySchemaParameterValueListIterator *params, KDb::ExpressionCallStack *callStack) const
Generates native (driver-specific) GREATEST() and LEAST() function calls.
Definition KDbDriver.cpp:343
virtual KDbAdminTools * drv_createAdminTools() const
Definition KDbDriver.cpp:125
virtual QString sqlTypeName(KDbField::Type type, const KDbField &field) const
Definition KDbDriver.cpp:130
QString escapeIdentifier(const QString &str) const
Definition KDbDriver.cpp:272
virtual bool drv_isSystemFieldName(const QString &name) const =0
KDbConnection * createConnection(const KDbConnectionData &connData, const KDbConnectionOptions &options)
Definition KDbDriver.cpp:139
static QString defaultSqlTypeName(KDbField::Type type)
Definition KDbDriver.cpp:166
virtual KDbEscapedString ifnullFunctionToString(const KDbNArgExpression &args, KDbQuerySchemaParameterValueListIterator *params, KDb::ExpressionCallStack *callStack) const
Generates native (driver-specific) IFNULL() function call.
Definition KDbDriver.cpp:327
void initDriverSpecificKeywords(const char *const *keywords)
Definition KDbDriver.cpp:298
virtual KDbEscapedString timeToSql(const QVariant &v) const
Converts time value to string.
Definition KDbDriver.cpp:257
bool isDriverSpecificKeyword(const QByteArray &word) const
Definition KDbDriver.cpp:308
virtual KDbEscapedString dateTimeToSql(const QVariant &v) const
Converts date/time value to string.
Definition KDbDriver.cpp:262
virtual KDbEscapedString escapeBLOB(const QByteArray &array) const =0
static bool isKDbSystemObjectName(const QString &name)
Definition KDbDriver.cpp:173
virtual QString drv_escapeIdentifier(const QString &str) const =0
QList< QByteArray > internalPropertyNames() const
Definition KDbDriver.cpp:291
@ MultipleTransactions
multiple concurrent trasactions are supported (this implies !SingleTransactions)
Definition KDbDriver.h:61
KDbDriverBehavior * behavior()
Returns structure that provides detailed information about driver's default behavior.
Definition KDbDriver.cpp:74
virtual KDbEscapedString dateToSql(const QVariant &v) const
Converts date value to string.
Definition KDbDriver.cpp:252
virtual KDbEscapedString escapeString(const QString &str) const =0
virtual KDbEscapedString valueToSql(KDbField::Type ftype, const QVariant &v) const
Definition KDbDriver.cpp:246
virtual KDbEscapedString randomFunctionToString(const KDbNArgExpression &args, KDbQuerySchemaParameterValueListIterator *params, KDb::ExpressionCallStack *callStack) const
Generates native (driver-specific) RANDOM() and RANDOM(X,Y) function calls.
Definition KDbDriver.cpp:352
bool isSystemFieldName(const QString &name) const
Definition KDbDriver.cpp:180
virtual KDbEscapedString lengthFunctionToString(const KDbNArgExpression &args, KDbQuerySchemaParameterValueListIterator *params, KDb::ExpressionCallStack *callStack) const
Generates native (driver-specific) LENGTH() function call.
Definition KDbDriver.cpp:335
KDbConnection * removeConnection(KDbConnection *conn)
Definition KDbDriver.cpp:158
virtual KDbEscapedString hexFunctionToString(const KDbNArgExpression &args, KDbQuerySchemaParameterValueListIterator *params, KDb::ExpressionCallStack *callStack) const
Generates native (driver-specific) HEX() function call.
Definition KDbDriver.cpp:319
virtual KDbEscapedString ceilingOrFloorFunctionToString(const QString &name, const KDbNArgExpression &args, KDbQuerySchemaParameterValueListIterator *params, KDb::ExpressionCallStack *callStack) const
Generates native (driver-specific) CEILING() and FLOOR() function calls.
Definition KDbDriver.cpp:373
virtual KDbEscapedString unicodeFunctionToString(const KDbNArgExpression &args, KDbQuerySchemaParameterValueListIterator *params, KDb::ExpressionCallStack *callStack) const
Generates native (driver-specific) UNICODE() function call.
Definition KDbDriver.cpp:382
virtual KDbConnection * drv_createConnection(const KDbConnectionData &connData, const KDbConnectionOptions &options)=0
virtual KDbEscapedString addLimitTo1(const KDbEscapedString &sql, bool add=true)
Definition KDbDriver.cpp:303
KDbEscapedString concatenateFunctionToString(const KDbBinaryExpression &args, KDbQuerySchemaParameterValueListIterator *params, KDb::ExpressionCallStack *callStack) const
Generates native (driver-specific) function call for concatenation of two strings.
Definition KDbDriver.cpp:390
KDbUtils::Property internalProperty(const QByteArray &name) const
Definition KDbDriver.cpp:286
void setMetaData(const KDbDriverMetaData *metaData)
Definition KDbDriver.cpp:313
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
Definition KDbResult.shared.h:35
A set created from static (0-terminated) array of raw null-terminated strings.
Definition KDbUtils.h:388
KDB_EXPORT KDbEscapedString timeToSql(const QVariant &v)
Converts time value to its string representation required by KDBSQL commands.
KDB_EXPORT KDbEscapedString dateToSql(const QVariant &v)
Converts date value to its string representation required by KDBSQL commands.
KDB_EXPORT QString escapeBLOB(const QByteArray &array, BLOBEscapingType type)
KDB_EXPORT QString escapeIdentifier(const QString &string)
Definition KDb.cpp:1334
KDB_EXPORT KDbEscapedString timeToIsoString(const QVariant &v)
Converts time value to its string representation in ISO 8601 Time format.
KDB_EXPORT KDbEscapedString dateToIsoString(const QVariant &v)
Converts date value to its string representation in ISO 8601 DateTime format.
KDB_EXPORT bool isKDbSqlKeyword(const QByteArray &word)
KDB_EXPORT KDbEscapedString dateTimeToIsoString(const QVariant &v)
Converts date/time value to its string representation in ISO 8601 DateTime format - with "T" delimite...
KDB_DEPRECATED_EXPORT KDbEscapedString dateTimeToSql(const QDateTime &v)
Converts date/time value to its string representation in ISO 8601 DateTime format - with "T" delimite...
bool isEmpty() const const
QByteArray toUpper() const const
iterator begin()
iterator end()
QString tr(const char *sourceText, const char *disambiguation, int n)
QString arg(Args &&... args) const const
int compare(QLatin1StringView s1, const QString &s2, Qt::CaseSensitivity cs)
bool startsWith(QChar c, Qt::CaseSensitivity cs) const const
QByteArray toUtf8() const const
bool contains(QLatin1StringView str, Qt::CaseSensitivity cs) const const
CaseInsensitive
String
Type type() const const
bool isNull() const const
QByteArray toByteArray() const const
int toInt(bool *ok) const const
QString toString() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Nov 6 2024 12:12:56 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Nov 6 2024 12:12:56 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.