MigrationSqlExporter class
Exports SQL text files derived from schema plan previews.
Exporting uses SchemaDriver.describeSchemaPlan and NEVER applies the plan.
Constructors
- MigrationSqlExporter(SchemaDriver _driver)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
exportDescriptor(
MigrationDescriptor descriptor, {required Directory outputRoot, SchemaPlan? upPlan, SchemaPlan? downPlan}) → Future< void> -
Writes
up.sqlanddown.sqlfordescriptorunderoutputRoot. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
renderPlan(
SchemaPlan plan) → String -
Renders
planto a single SQL text payload using statement previews. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited