TableSnapshot class

Represents a snapshot of a single table.

Constructors

TableSnapshot({required String name, required Map<String, ColumnSnapshot> columns, Map<String, String> checks = const {}})
Creates a snapshot of a single table.
const
TableSnapshot.fromMap(String name, Map<String, dynamic> data)
Creates a table snapshot from a map.
factory

Properties

checks Map<String, String>
Map of constraint name to raw CHECK expression.
final
columns Map<String, ColumnSnapshot>
Map of column name to column snapshot.
final
hashCode int
The hash code for this object.
no setterinherited
name String
The 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
toMap() Map<String, dynamic>
Converts the table snapshot to a map.
toString() String
A string representation of this object.
inherited
toTableInfo() TableInfo
Converts the table snapshot to the TableInfo the DDL generators consume.

Operators

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