MigrationRunner class
Constructors
-
MigrationRunner(DatabaseConnection connection, List<
DatabaseMigration> migrations)
Properties
- connection → DatabaseConnection
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
migrations
→ List<
DatabaseMigration> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rollbackLast(
) → Future< void> -
runManual(
MigrationCallback callback) → Future< void> - Run a callback with access to connection and schema manager (not tracked)
-
runMigrations(
) → Future< void> -
runSql(
String sql, {Map< String, dynamic> ? parameters}) → Future<void> - Run a single ad-hoc SQL statement (not tracked in migrations table) Use this for one-off operations that don't need version tracking
-
runSqlStatements(
List< String> statements) → Future<void> - Run multiple ad-hoc SQL statements (not tracked in migrations table)
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited