SqliteMigrations class
Migrations to initialize and update a database.
Constructors
- SqliteMigrations({String migrationTable = "_migrations"})
Properties
- createDatabase ↔ SqliteMigration?
-
Optional: Migration to create database from scratch.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
migrations
↔ List<
SqliteMigration> -
List of migrations to execute, in order. Use add to add new migrations.
getter/setter pair
- migrationTable ↔ String
-
Name of table used to store migrations.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- version → dynamic
-
The current version as specified by the migrations.
no setter
Methods
-
add(
SqliteMigration migration) → dynamic -
getCurrentVersion(
SqliteWriteContext db) → Future< int> - Get the last applied migration version in the database.
-
migrate(
SqliteConnection db) → Future< void> - Initialize or update the database.
-
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