KDb
KDbAlter.h
120 PhysicalAlteringRequired = 1,
124 DataConversionRequired = 2,
129 MainSchemaAlteringRequired = 4,
135 ExtendedSchemaAlteringRequired = 8,
138 SchemaAlteringRequired = ExtendedSchemaAlteringRequired | MainSchemaAlteringRequired
144 typedef KDbUtils::AutodeletedHash<int, ActionDict*> ActionDictDict; //!< for collecting groups of actions by field UID
149 typedef QVector<ActionBase*> ActionsVector; //!< for collecting actions related to a single field
495 Sets args.result to true on success, to false on failure or when the above requirements are not met
500 The old table is returned if recreating table schema was not necessary or args.simulate is true.
KDbUtils::AutodeletedHash< QByteArray, ActionBase * > ActionDict
For collecting actions related to a single field.
Definition: KDbAlter.h:141
Abstract base class used for implementing all the AlterTable actions.
Definition: KDbAlter.h:158
KDbUtils::AutodeletedHash< int, ActionDict * > ActionDictDict
for collecting groups of actions by field UID
Definition: KDbAlter.h:144
QVector< ActionBase * > ActionsVector
for collecting actions related to a single field
Definition: KDbAlter.h:149
Defines an action for removing a single table field.
Definition: KDbAlter.h:335
bool showUID
true if UID should be added to the action debug string (the default)
Definition: KDbAlter.h:181
virtual bool shouldBeRemoved(ActionDictDict *fieldActions)
Definition: KDbAlter.h:221
Abstract base class used for implementing table field-related actions.
Definition: KDbAlter.h:248
virtual void simplifyActions(ActionDictDict *fieldActions)
Definition: KDbAlter.h:213
bool onlyComputeRequirements
Definition: KDbAlter.h:478
Defines an action for inserting a single table field.
Definition: KDbAlter.h:360
void setFieldName(const QString &fieldName)
Sets field name for this action.
Definition: KDbAlter.h:273
QString * debugString
Definition: KDbAlter.h:469
KDbAlterTableHandler & operator<<(ActionBase *action)
Definition: KDbAlter.cpp:778
void setAlteringRequirements(int alteringRequirements)
Sets requirements for altering; used internally by KDbAlterTableHandler object.
Definition: KDbAlter.h:200
void debug(const DebugOptions &debugOptions=DebugOptions())
Definition: KDbAlter.cpp:99
static int alteringTypeForProperty(const QByteArray &propertyName)
Definition: KDbAlter.cpp:181
QList< ActionBase * >::ConstIterator ActionListIterator
Defines a type for action list's iterator.
Definition: KDbAlter.h:155
void setActions(const ActionList &actions)
Definition: KDbAlter.cpp:799
bool showFieldDebug
true if the field associated with the action (if exists) should be appended to the debug string (defa...
Definition: KDbAlter.h:185
3-state logical type with three values: true, false and cancelled and convenient operators.
Definition: KDbTristate.h:100
AlteringRequirements
Defines flags for possible altering requirements; can be combined.
Definition: KDbAlter.h:118
Arguments for KDbAlterTableHandler::execute().
Definition: KDbAlter.h:458
Provides database connection, allowing queries and data modification.
Definition: KDbConnection.h:51
Controls debug options for actions. Used in debugString() and debug().
Definition: KDbAlter.h:175
Definition: KDbTableSchema.h:37
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Dec 7 2023 04:09:06 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Dec 7 2023 04:09:06 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.