TestGateway class
A testing gateway instance.
- Inheritance
-
- Object
- DatabaseGateway
- TestGateway
Constructors
Properties
-
appliedMigrations
→ List<
Migration> -
All the applied migrations.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
currentVersion(
) → Future< String?> -
Returns the current version or null if the version is not yet defined.
override
-
initialize(
Migration migration) → Future< void> -
Initialize the DB by applying the
migration. The DB MUST be fresh, e.g. no version defined. If the DB is not fresh, this method MUST throw an exception. All migration statements MUST be executed in a single transaction.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
upgrade(
String fromVersion, Migration migration) → Future< void> -
Applies the
migrationif the current version isfromVersion. If the current DB version is notfromVersion, this method MUST throw an exception. All migration statements MUST be executed in a single transaction.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited