KDb
KDbCursor.cpp
247 if (d->conn->driver()->behavior()->_1ST_ROW_READ_AHEAD_REQUIRED_TO_KNOW_IF_THE_RESULT_IS_EMPTY) {
306 } else if (!(d->conn->driver()->behavior()->_1ST_ROW_READ_AHEAD_REQUIRED_TO_KNOW_IF_THE_RESULT_IS_EMPTY)) {
Provides database connection, allowing queries and data modification.
Definition KDbConnection.h:52
bool updateRecord(KDbQuerySchema *query, KDbRecordData *data, KDbRecordEditBuffer *buf, bool useRecordId=false)
Definition KDbConnection.cpp:3098
bool deleteAllRecords(KDbQuerySchema *query)
Definition KDbConnection.cpp:3430
bool deleteRecord(KDbQuerySchema *query, KDbRecordData *data, bool useRecordId=false)
Definition KDbConnection.cpp:3363
bool deleteRecord(KDbRecordData *data, bool useRecordId=false)
Definition KDbCursor.cpp:517
bool updateRecord(KDbRecordData *data, KDbRecordEditBuffer *buf, bool useRecordId=false)
Definition KDbCursor.cpp:498
virtual bool drv_storeCurrentRecord(KDbRecordData *data) const =0
int m_fieldsToStoreInRecord
Used by storeCurrentRecord(), reimplement if needed (e.g.
Definition KDbCursor.h:302
bool insertRecord(KDbRecordData *data, KDbRecordEditBuffer *buf, bool getRecrordId=false)
Definition KDbCursor.cpp:507
virtual void drv_bufferMovePointerTo(qint64 at)=0
KDbQueryColumnInfo::Vector orderByColumnList() const
Definition KDbCursor.cpp:602
virtual void drv_bufferMovePointerPrev()=0
KDbCursor(KDbConnection *conn, const KDbEscapedString &sql, Options options=KDbCursor::Option::None)
Definition KDbCursor.cpp:66
bool m_buffering_completed
true if we already have all records stored in the buffer
Definition KDbCursor.h:320
virtual void drv_bufferMovePointerNext()=0
int m_logicalFieldCount
logical field count, i.e. without internal values like Record Id or lookup
Definition KDbCursor.h:305
void setQueryParameters(const QList< QVariant > ¶ms)
Sets query parameters params for this cursor.
Definition KDbCursor.cpp:612
virtual void drv_appendCurrentRecordToBuffer()=0
void setOrderByColumnList(const QStringList &columnNames)
Definition KDbCursor.cpp:580
KDbQueryColumnInfo::Vector * m_visibleFieldsExpanded
Useful e.g. for value(int) method to obtain access to schema definition.
Definition KDbCursor.h:324
virtual bool drv_open(const KDbEscapedString &sql)=0
bool ROW_ID_FIELD_RETURNS_LAST_AUTOINCREMENTED_VALUE
Definition KDbDriverBehavior.h:108
bool _1ST_ROW_READ_AHEAD_REQUIRED_TO_KNOW_IF_THE_RESULT_IS_EMPTY
Definition KDbDriverBehavior.h:188
KDbDriverBehavior * behavior()
Returns structure that provides detailed information about driver's default behavior.
Definition KDbDriver.cpp:74
A builder for generating various types of native SQL statements.
Definition KDbNativeStatementBuilder.h:30
bool generateSelectStatement(KDbEscapedString *target, KDbQuerySchema *querySchema, const KDbSelectStatementOptions &options, const QList< QVariant > ¶meters=QList< QVariant >()) const
Definition KDbNativeStatementBuilder.cpp:423
KDbQuerySchema provides information about database query.
Definition KDbQuerySchema.h:46
@ WithInternalFields
Like Default but internal fields (for lookup) are appended.
@ WithInternalFieldsAndRecordId
Like WithInternalFields but record ID (big int type) field is appended after internal fields.
KDbQueryColumnInfo::Vector visibleFieldsExpanded(KDbConnection *conn, FieldsExpandedMode options=FieldsExpandedMode::Default) const
Definition KDbQuerySchema.h:508
KDbQueryColumnInfo::Vector internalFields(KDbConnection *conn) const
Definition KDbQuerySchema.cpp:784
Structure for storing single record with type information.
Definition KDbRecordData.h:37
provides data for single edited database record
Definition KDbRecordEditBuffer.h:77
Definition KDbResult.shared.h:35
Options used in KDbNativeStatementBuilder::generateSelectStatement()
Definition KDbSelectStatementOptions.shared.h:32
KCALENDARCORE_EXPORT QDataStream & operator<<(QDataStream &out, const KCalendarCore::Alarm::Ptr &)
QDebug & nospace()
QDebug & space()
qsizetype count() const const
QString fromLatin1(QByteArrayView str)
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.