KDb
PostgresqlCursor.cpp
174 static inline QVariant convertToKDbType(bool convert, const QVariant &value, KDbField::Type kdbType)
215 //! @todo avoid deep copy; QByteArray does not allow passing ownership of data; maybe copy PQunescapeBytea code?
224 // postgresqlWarning() << "PostgresqlCursor::value - ERROR: requested position is greater than the number of fields";
227 KDbField *f = (m_visibleFieldsExpanded && pos < qMin(m_visibleFieldsExpanded->count(), m_fieldCount))
232 const KDbField::Type kdbType = f ? f->type() : KDbField::InvalidType; // cache: evaluating type of expressions can be expensive
QString fromUtf8(const char *str, int size)
QByteArray fromRawData(const char *data, int size)
Type type(const QSqlDatabase &db)
void chop(int n)
const QList< QKeySequence > & close()
static QVariant convertToType(const QVariant &value, Type type)
Converts value value to variant corresponding to type type.
Definition: KDbField.cpp:426
KSERVICE_EXPORT KService::List query(FilterFunc filterFunc)
bool isEmpty() const const
int length() const const
bool isPunct() const const
KDbField::Type pgsqlToKDbType(int pqtype, int pqfmod, int *maxTextLength) const
Definition: PostgresqlDriver.h:96
QDate fromString(const QString &string, Qt::DateFormat format)
Structure for storing single record with type information.
Definition: KDbRecordData.h:36
KDB_EXPORT QByteArray pgsqlByteaToByteArray(const char *data, int length=-1)
Definition: KDb.cpp:1661
KDbQuerySchema provides information about database query.
Definition: KDbQuerySchema.h:45
QString fromLatin1(const char *str, int size)
const QChar at(int position) const const
Provides database connection, allowing queries and data modification.
Definition: KDbConnection.h:51
ISODate
Option
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 04:07:51 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 04:07:51 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.