KDb
PostgresqlDriver.h
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
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
static KDbField::Type typeForSize(KDbField::Type t, int pqfmod, int *maxTextLength)
Uses information obtained from PQfmod() and adjust type t if possible.
Definition PostgresqlDriver.h:68
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
PostgresqlDriver(QObject *parent, const QVariantList &args)
Definition PostgresqlDriver.cpp:37
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
static int pqfmodToLength(int pqfmod)
Converts information converted from PQfmod() to length. -1 if missing.
Definition PostgresqlDriver.h:53
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
KDbField::Type pgsqlToKDbType(int pqtype, int pqfmod, int *maxTextLength) const
Definition PostgresqlDriver.h:96
bool isSystemDatabaseName(const QString &name) const override
Definition PostgresqlDriver.cpp:124
T value(const Key &key, const T &defaultValue) const const
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:11:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:11:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.