Represents a database and its tables.
This class is used internally and during Migration.
Constructors
- Schema(List<SchemaTable> tables)
- Schema.empty()
- Schema.from(Schema otherSchema)
- Schema.fromDataModel(ManagedDataModel dataModel)
- Schema.fromMap(Map<String, dynamic> map)
Properties
- dependencyOrderedTables → List<SchemaTable>
-
A list of tables in this database that are ordered by dependencies.
read-only - tables → List<SchemaTable>
-
The tables in this database.
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 tableName) → SchemaTable -
Gets a table from tables by that table's name.
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
addTable(
SchemaTable table) → void -
asMap(
) → Map<String, dynamic> -
differenceFrom(
Schema schema) → SchemaDifference -
The differences between two schemas.
-
removeTable(
SchemaTable table) → void -
renameTable(
SchemaTable table, String newName) → void -
tableForName(
String name) → SchemaTable -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited -
toString(
) → String -
Returns a string representation of this object.
inherited