TableInfo class final
Physical table facts read from the selected database's catalog.
unmanaged preserves descriptions of objects a migration must not silently replace, such as custom triggers or unsupported index definitions.
Constructors
-
TableInfo({required String name, required List<
ColumnInfo> columns, required List<String> primaryKey, required List<List< uniqueKeys, required List<String> >ForeignKey> foreignKeys, required List<IndexSchema> indexes, required List<CatalogObject> unmanaged, List<CheckInfo> checks = const []}) -
Groups catalog facts without querying or changing the database.
const
Properties
-
checks
→ List<
CheckInfo> -
Enforced row CHECK constraints recognized by the catalog reader.
final
-
columns
→ List<
ColumnInfo> -
Column storage metadata in catalog order.
final
-
foreignKeys
→ List<
ForeignKey> -
Modeled foreign-key columns, target tables, and deletion actions.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
indexes
→ List<
IndexSchema> -
Index definitions expressible by the ORM's physical schema model.
final
- name → String
-
Physical table name used for this inspection.
final
-
primaryKey
→ List<
String> -
Primary-key column names in key order; empty when no key exists.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
uniqueKeys
→ List<
List< String> > -
Modeled unique constraints, each retaining its own column order.
final
-
unmanaged
→ List<
CatalogObject> -
Objects requiring separate review before a table rebuild or schema change.
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