KDb
KDbAlter.h
120 PhysicalAlteringRequired = 1,
124 DataConversionRequired = 2,
129 MainSchemaAlteringRequired = 4,
135 ExtendedSchemaAlteringRequired = 8,
139 };
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.
Controls debug options for actions. Used in debugString() and debug().
Definition KDbAlter.h:176
bool showFieldDebug
true if the field associated with the action (if exists) should be appended to the debug string (defa...
Definition KDbAlter.h:185
bool showUID
true if UID should be added to the action debug string (the default)
Definition KDbAlter.h:181
Abstract base class used for implementing all the AlterTable actions.
Definition KDbAlter.h:159
virtual void simplifyActions(ActionDictDict *fieldActions)
Definition KDbAlter.h:213
virtual bool shouldBeRemoved(ActionDictDict *fieldActions)
Definition KDbAlter.h:221
void setAlteringRequirements(int alteringRequirements)
Sets requirements for altering; used internally by KDbAlterTableHandler object.
Definition KDbAlter.h:200
Arguments for KDbAlterTableHandler::execute().
Definition KDbAlter.h:459
bool onlyComputeRequirements
Definition KDbAlter.h:478
Abstract base class used for implementing table field-related actions.
Definition KDbAlter.h:249
void setFieldName(const QString &fieldName)
Sets field name for this action.
Definition KDbAlter.h:273
Defines an action for inserting a single table field.
Definition KDbAlter.h:361
Defines an action for removing a single table field.
Definition KDbAlter.h:336
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
QList< ActionBase * >::ConstIterator ActionListIterator
Defines a type for action list's iterator.
Definition KDbAlter.h:155
AlteringRequirements
Defines flags for possible altering requirements; can be combined.
Definition KDbAlter.h:118
KDbUtils::AutodeletedHash< QByteArray, ActionBase * > ActionDict
For collecting actions related to a single field.
Definition KDbAlter.h:143
Provides database connection, allowing queries and data modification.
Definition KDbConnection.h:52
Definition KDbTableSchema.h:38
3-state logical type with three values: true, false and cancelled and convenient operators.
Definition KDbTristate.h:101
ConstIterator
Iterator
ConstIterator
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.