KDb
PostgresqlDriver.cpp
171 return KDbEscapedString("UPPER(ENCODE(%1, 'hex'))").arg(args.arg(0).toString(this, params, callStack));
178 return KDbFunctionExpression::toString(QLatin1String("COALESCE"), this, args, params, callStack);
187 return KDbFunctionExpression::toString(QLatin1String("OCTET_LENGTH"), this, args, params, callStack);
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 USE_TEMPORARY_DATABASE_FOR_CONNECTION_IF_NEEDED
Definition KDbDriverBehavior.h:178
QString BOOLEAN_FALSE_LITERAL
Definition KDbDriverBehavior.h:204
QString ALWAYS_AVAILABLE_DATABASE_NAME
Definition KDbDriverBehavior.h:118
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 SPECIAL_AUTO_INCREMENT_DEF
Definition KDbDriverBehavior.h:77
QString BOOLEAN_TRUE_LITERAL
Definition KDbDriverBehavior.h:198
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
virtual QString sqlTypeName(KDbField::Type type, const KDbField &field) const
Definition KDbDriver.cpp:130
virtual KDbEscapedString lengthFunctionToString(const KDbNArgExpression &args, KDbQuerySchemaParameterValueListIterator *params, KDb::ExpressionCallStack *callStack) const
Generates native (driver-specific) LENGTH() function call.
Definition KDbDriver.cpp:335
KDbEscapedString toString(const KDbDriver *driver, KDbQuerySchemaParameterValueListIterator *params=nullptr, KDb::ExpressionCallStack *callStack=nullptr) const
Definition KDbExpression.cpp:469
static KDbEscapedString greatestOrLeastFunctionUsingCaseToString(const QString &name, const KDbDriver *driver, const KDbNArgExpression &args, KDbQuerySchemaParameterValueListIterator *params, KDb::ExpressionCallStack *callStack)
Definition KDbFunctionExpression.cpp:1393
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)
bool isSystemObjectName(const QString &name) const override
Definition PostgresqlDriver.cpp:112
KDbEscapedString ifnullFunctionToString(const KDbNArgExpression &args, KDbQuerySchemaParameterValueListIterator *params, KDb::ExpressionCallStack *callStack) const override
Generates native (driver-specific) IFNULL() function call.
Definition PostgresqlDriver.cpp:174
QString drv_escapeIdentifier(const QString &str) const override
Definition PostgresqlDriver.cpp:151
KDbEscapedString escapeString(const QString &str) const override
Escape a string for use as a value.
Definition PostgresqlDriver.cpp:131
KDbEscapedString unicodeFunctionToString(const KDbNArgExpression &args, KDbQuerySchemaParameterValueListIterator *params, KDb::ExpressionCallStack *callStack) const override
Generates native (driver-specific) UNICODE() function call.
Definition PostgresqlDriver.cpp:201
KDbConnection * drv_createConnection(const KDbConnectionData &connData, const KDbConnectionOptions &options) override
Definition PostgresqlDriver.cpp:106
KDbEscapedString hexFunctionToString(const KDbNArgExpression &args, KDbQuerySchemaParameterValueListIterator *params, KDb::ExpressionCallStack *callStack) const override
Generates native (driver-specific) HEX() function call.
Definition PostgresqlDriver.cpp:166
bool drv_isSystemFieldName(const QString &name) const override
Definition PostgresqlDriver.cpp:118
QString sqlTypeName(KDbField::Type type, const KDbField &field) const override
Overrides the default implementation to allow for NUMERIC type natively.
Definition PostgresqlDriver.cpp:93
KDbEscapedString lengthFunctionToString(const KDbNArgExpression &args, KDbQuerySchemaParameterValueListIterator *params, KDb::ExpressionCallStack *callStack) const override
Generates native (driver-specific) LENGTH() function call.
Definition PostgresqlDriver.cpp:181
KDbEscapedString escapeBLOB(const QByteArray &array) const override
Escape BLOB value array.
Definition PostgresqlDriver.cpp:161
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 PostgresqlDriver.cpp:192
bool isSystemDatabaseName(const QString &name) const override
Definition PostgresqlDriver.cpp:124
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)
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.