TableDefinition class
Represents the desired state of a database table.
Constructors
-
TableDefinition({required String name, required List<
ColumnDefinition> columns, List<String> primaryKey = const [], List<ForeignKeyDefinition> foreignKeys = const [], List<UniqueConstraintDefinition> uniqueConstraints = const [], List<IndexDefinition> indexes = const []}) -
const
Properties
-
columns
→ List<
ColumnDefinition> -
final
-
foreignKeys
→ List<
ForeignKeyDefinition> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
indexes
→ List<
IndexDefinition> -
final
- name → String
-
final
-
primaryKey
→ List<
String> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
uniqueConstraints
→ List<
UniqueConstraintDefinition> -
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