ForeignKeyMatchType enum

Defines how a foreign key should be matched.

Inheritance

Constructors

ForeignKeyMatchType()
const

Values

full → const ForeignKeyMatchType

full will not allow one column of a multicolumn foreign key to be null unless all foreign key columns are null.

partial → const ForeignKeyMatchType

partial is not yet implemented in postges. Don't use this.

simple → const ForeignKeyMatchType

simple allows any of the foreign key columns to be null. If any of them are null, the row is not required to have a match in the referenced table. (Default)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

allToJson() → dynamic
Returns a serialized JSON structure of the model which also includes fields used by the database.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() int
Returns a serialized JSON structure of the model, ready to be sent through the API. This does not include fields that are marked as database only.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(int index) ForeignKeyMatchType?

Constants

values → const List<ForeignKeyMatchType>
A constant List of the values in this enum, in order of their declaration.