ForeignKey class final
A database foreign key described with ordered physical column names.
Source and target columns must have matching arity and compatible storage. Creating this value does not execute DDL or infer an index.
Constructors
Properties
-
columns
→ List<
String> -
Source columns in key order.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- onDelete → String
-
SQL referential action, validated for the target database.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- target → String
-
Physical name of the referenced table.
final
-
targetColumns
→ List<
String> -
Target key columns in the corresponding source-column order.
final
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