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.sql and down.sql for descriptor under outputRoot.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
renderPlan(SchemaPlan plan) → String
Renders plan to 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