ReferencedBy class

A table whose foreign keys reference the table being altered, with its indexes.

Carried on AlterTable so a dialect that must REBUILD the altered table (SQLite) can rebuild its dependents too, dropping a table that is still referenced fires ON DELETE CASCADE on the referencing rows, silently. Dialects that alter in place (Postgres) ignore this.

Constructors

ReferencedBy({required TableInfo table, List<IndexInfo> indexes = const []})
A table whose foreign keys reference the table being altered, with its indexes.
const
ReferencedBy.fromMap(Map<String, dynamic> map)
Creates a ReferencedBy from a map representation.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
indexes List<IndexInfo>
The referencing table's indexes, which die with it in a rebuild.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
table TableInfo
The referencing table's full (current) definition.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Converts this to a map representation.
toString() String
A string representation of this object.
inherited

Operators

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