KDb
KDbTableSchema.cpp
65 KDbQuerySchema *query; //!< cached query schema that is defined by "select * from <this_table_name>"
373 bool KDbTableSchema::setLookupFieldSchema(const QString& fieldName, KDbLookupFieldSchema *lookupFieldSchema)
417 QHash<const KDbField*, KDbLookupFieldSchema*>::ConstIterator itMap = d->lookupFields.constFind(f);
bool removeIndex(KDbIndexSchema *index)
Removes index index from this table schema Ownership of the index is transferred to the table schema.
Definition: KDbTableSchema.cpp:195
const T value(const Key &key) const const
std::optional< QSqlQuery > query(const QString &queryStatement)
KCALENDARCORE_EXPORT QDataStream & operator<<(QDataStream &out, const KCalendarCore::Alarm::Ptr &)
Provides information about lookup field's setup.
Definition: KDbLookupFieldSchema.h:123
bool hasPrevious() const const
KDbField::ListIterator fieldsIterator() const
Definition: KDbFieldList.cpp:340
int count(const T &value) const const
QDebug & nospace()
KDbIndexSchema * copyIndexFrom(const KDbIndexSchema &index)
Definition: KDbTableSchema.cpp:204
QDebug & space()
Definition: KDbObject.shared.h:31
virtual bool insertField(int index, KDbField *field)
Definition: KDbFieldList.cpp:123
void setConnection(KDbConnection *conn)
Definition: KDbTableSchema.cpp:346
Definition: KDbTableSchema.h:209
bool removeField(KDbField *field) override
Definition: KDbTableSchema.cpp:293
bool insertField(int index, KDbField *field) override
Definition: KDbTableSchema.cpp:243
const T & at(int i) const const
void init(KXmlGuiWindow *window, KgDifficulty *difficulty=nullptr)
bool addIndex(KDbIndexSchema *index)
Adds index index to this table schema Ownership of the index is transferred to the table schema.
Definition: KDbTableSchema.cpp:186
Definition: KDbFieldList.h:33
typedef ConstIterator
Provides information about database index that can be created for a database table.
Definition: KDbIndexSchema.h:39
bool setLookupFieldSchema(const QString &fieldName, KDbLookupFieldSchema *lookupFieldSchema)
Definition: KDbTableSchema.cpp:373
KDbQuerySchema provides information about database query.
Definition: KDbQuerySchema.h:45
void setPrimaryKey(KDbIndexSchema *pkey)
Definition: KDbTableSchema.cpp:216
const char * name(StandardAction id)
void setTable(KDbTableSchema *table)
Assigns this index to table table() must be nullptr and table must be not be nullptr.
Definition: KDbIndexSchema.cpp:113
Provides database connection, allowing queries and data modification.
Definition: KDbConnection.h:51
KDbField::ListIterator fieldsIteratorConstEnd() const
Definition: KDbFieldList.cpp:345
Definition: KDbTableSchema.h:37
QVector< KDbLookupFieldSchema * > lookupFields() const
Definition: KDbTableSchema.cpp:406
KDbLookupFieldSchema * lookupFieldSchema(const KDbField &field)
Definition: KDbTableSchema.cpp:388
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Jun 9 2023 04:07:16 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Jun 9 2023 04:07:16 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.