SchemaVerifier constructor

SchemaVerifier(
  1. SchemaInstantiationHelper helper, {
  2. void setup(
    1. Database raw
    )?,
})

Creates a schema verifier for the drift-generated helper.

See tests for more information. The optional setup parameter is used internally by the verifier for every database connection it opens. This can be used to, for instance, register custom functions expected by your database.

Implementation

factory SchemaVerifier(
  SchemaInstantiationHelper helper, {
  void Function(Database raw)? setup,
}) = NativeSchemaVerifier;