DeleteRule enum
A foreign key with delete rules
CASCADE: means that if a record in the parent table is deleted, then the corresponding records in the child table will automatically be deleted.
SET_DEFAULT_VALUE: means that if a record in the parent table is deleted, then the corresponding records will be set to the default value automatically without deleting.
SET_NULL: means that if a record in the parent table is deleted, then the corresponding records will be set NULL automatically without deleting.
NO_ACTION: means if there is a row in the CHILD table, you are not able to delete its PARENT row without breaking referential integrity, so the Delete will be rolled back (fail by NO ACTION)
Values
- CASCADE → const DeleteRule
- SET_DEFAULT_VALUE → const DeleteRule
- SET_NULL → const DeleteRule
- NO_ACTION → const DeleteRule
Properties
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
Constants
-
values
→ const List<
DeleteRule> - A constant List of the values in this enum, in order of their declaration.