KeyAction enum
A KeyAction can be used on a BuildColumn.references clause to describe how updates and deletes to a referenced table should propagate in your database.
By default, KeyAction.noAction will be used. For details, see the sqlite3 documentation.
Values
- setNull → const KeyAction
-
Set the column to null when the referenced column changes.
- setDefault → const KeyAction
-
Set the column back to its default value when the referenced column changes.
- cascade → const KeyAction
-
Propagate updates and deletes into referencing rows.
- restrict → const KeyAction
-
Forbid deleting or updating the referenced column in a database if there are children pointing towards it.
- noAction → const KeyAction
-
No special action is taken when the parent key is modified or deleted from the database.
For SqlDialect.mariadb this is synonym for restrict.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited