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 DB is not initialized.
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 already initialize, 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 version, Migration migration) → Future< void> -
Applies the
migrationif the current version isversion. If the current DB version is notversion, 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