ForeignKeyDefinition class final

A foreign key constraint.

Constructors

ForeignKeyDefinition(List<String> columns, {String? name})

Properties

columns → List<String>
final
hashCode → int
The hash code for this object.
no setterinherited
onDeleteAction ↔ String?
getter/setter pair
onUpdateAction ↔ String?
getter/setter pair
referencedColumns ↔ List<String>
getter/setter pair
referencedTable ↔ String?
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

cascadeOnDelete() → ForeignKeyDefinition
cascadeOnUpdate() → ForeignKeyDefinition
nameFor(String table) → String
Constraint name (<table>_<columns>_foreign when unset).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
nullOnDelete() → ForeignKeyDefinition
on(String table) → ForeignKeyDefinition
onDelete(String action) → ForeignKeyDefinition
onUpdate(String action) → ForeignKeyDefinition
references(Object column) → ForeignKeyDefinition
restrictOnDelete() → ForeignKeyDefinition
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited