SchemaVerifier<DB extends CommonDatabase> class
abstract
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
-
migrateAndValidate(GeneratedDatabase db, int expectedVersion, {bool validateDropped = false})
→ Future<void>
-
Runs a schema migration and verifies that it transforms the database into
a correct state.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
schemaAt(int version)
→ Future<InitializedSchema<DB>>
-
Creates a new database and instantiates the schema with the given
version
.
-
startAt(int version)
→ Future<DatabaseConnection>
-
Creates a
DatabaseConnection
that contains empty tables created for the
known schema version
.
-
testWithDataIntegrity<OldDatabase extends GeneratedDatabase, NewDatabase extends GeneratedDatabase>({required OldDatabase createOld(QueryExecutor), required NewDatabase createNew(QueryExecutor), required GeneratedDatabase openTestedDatabase(QueryExecutor), required void createItems(Batch, OldDatabase), required Future validateItems(NewDatabase), required int oldVersion, required int newVersion})
→ Future<void>
-
Utility function used by generated tests to verify that migrations
modify the database schema as expected.
-
toString()
→ String
-
A string representation of this object.
inherited