SPRoomForeignKey class

Declarative foreign-key metadata.

Constructors

SPRoomForeignKey({required List<String> columns, required String referencedTable, required List<String> referencedColumns, SPRoomForeignKeyAction onDelete = SPRoomForeignKeyAction.noAction, SPRoomForeignKeyAction onUpdate = SPRoomForeignKeyAction.noAction, bool deferred = false})
Creates a foreign key.
const

Properties

columns → List<String>
Local columns participating in the key.
final
deferred → bool
Whether constraint checking is deferred until transaction commit.
final
hashCode → int
The hash code for this object.
no setterinherited
onDelete → SPRoomForeignKeyAction
Action when the referenced row is deleted.
final
onUpdate → SPRoomForeignKeyAction
Action when the referenced key is updated.
final
referencedColumns → List<String>
Referenced columns, in the same order as columns.
final
referencedTable → String
Referenced table name.
final
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