Represents a database table for a Schema.

Use this class during migration to add, delete and modify tables in a schema.

Constructors

SchemaTable(String name, List<SchemaColumn> columns)

SchemaTable.empty()

SchemaTable.from(SchemaTable otherTable)

SchemaTable.fromEntity(ManagedEntity entity)

SchemaTable.fromMap(Map<String, dynamic> map)

Properties

columns → List<SchemaColumn>

read / write
name → String

read / write
hashCode → int

The hash code for this object.

read-only, inherited
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator [](String columnName) SchemaColumn

operator ==(other) → bool

The equality operator.

inherited

Methods

addColumn(SchemaColumn column) → void

asMap() → Map<String, dynamic>

columnForName(String name) SchemaColumn

differenceFrom(SchemaTable table) SchemaTableDifference

The differences between two tables.

removeColumn(SchemaColumn column) → void

renameColumn(SchemaColumn column, String newName) → void

replaceColumn(SchemaColumn existingColumn, SchemaColumn newColumn) → void

toString() → String

Returns a string representation of this object.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited