KDb
PostgresqlCursor.cpp
174static 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
Provides database connection, allowing queries and data modification.
Definition KDbConnection.h:52
int m_fieldsToStoreInRecord
Used by storeCurrentRecord(), reimplement if needed (e.g.
Definition KDbCursor.h:302
bool m_buffering_completed
true if we already have all records stored in the buffer
Definition KDbCursor.h:320
KDbQueryColumnInfo::Vector * m_visibleFieldsExpanded
Useful e.g. for value(int) method to obtain access to schema definition.
Definition KDbCursor.h:324
static QVariant convertToType(const QVariant &value, Type type)
Converts value value to variant corresponding to type type.
Definition KDbField.cpp:426
KDbQuerySchema provides information about database query.
Definition KDbQuerySchema.h:46
Structure for storing single record with type information.
Definition KDbRecordData.h:37
KDbField::Type pgsqlToKDbType(int pqtype, int pqfmod, int *maxTextLength) const
Definition PostgresqlDriver.h:96
KSERVICE_EXPORT KService::List query(FilterFunc filterFunc)
KDB_EXPORT QByteArray pgsqlByteaToByteArray(const char *data, int length=-1)
Option
VehicleSection::Type type(QStringView coachNumber, QStringView coachClassification)
QByteArray fromRawData(const char *data, qsizetype size)
bool isPunct(char32_t ucs4)
QDate fromString(QStringView string, QStringView format, QCalendar cal)
const_reference at(qsizetype i) const const
qsizetype count() const const
const QChar at(qsizetype position) const const
void chop(qsizetype n)
QString fromLatin1(QByteArrayView str)
QString fromUtf8(QByteArrayView str)
bool isEmpty() const const
qsizetype length() const const
ISODate
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.