SchemaExporter class final
Utility that exports the DDL schema statements making up a drift database.
Constructors
- SchemaExporter(GeneratedDatabase _database(QueryExecutor))
- Utility that exports the DDL schema statements making up a drift database.
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
-
collectOnCreateStatements(
[SqlDialect dialect = SqlDialect.sqlite]) → Future< List< String> > -
Opens the database and runs the
onCreate
migration callback, collecting all statements that were executed in the process. -
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
Static Methods
-
run(
List< String> args, SendPort port, GeneratedDatabase database(QueryExecutor)) → Future<void> -
Creates a SchemaExporter with the
database
, parses the single-argumentargs
list as a dialect name, calls collectOnCreateStatements and sends the resulting list over theport
.