A mixin whose methods are invoked by the scheme migration as callbacks.
If, during a revision upgrade, an application needs to directly modify key-value pairs of the mapping table, it must do so in the before callback only, with care taken to trigger the rebuild of related search indexes by incrementing their SearchIndex.version values.
Inside callbacks, the following SQLite APIs are available or forbidden:
- available: SQLite.statement, SQLite.prepare, SQLite.query, and SQLite.free;
- forbidden: SQLite.apply, SQLite.exists, SQLite.select, and SQLite.domain.
The migration procedure and both callbacks share the same transaction. Neither callback must roll back or commit the migration transaction.
Constructors
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
-
after(
SQLite sqlite, {required bool finished}) → void - This callback is invoked after the scheme migration finishes.
-
before(
SQLite sqlite, int storedRevision, int actualRevision) → void - This callback is invoked before the scheme migration starts.
-
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