pub async fn validate_migrations_global<F, Fut>(
validate: F,
db_prefix: &str,
migrations: BTreeMap<DatabaseVersion, for<'tx> fn(_: MigrationContext<'tx>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'tx>>>,
decoders: ModuleRegistry<Decoder, DecodingMode>,
) -> Result<(), Error>
Expand description
Validates the database migrations. decoders
need to be
passed in as an argument since this is module agnostic. First
applies all defined migrations to the database then executes the `validate``
function which should confirm the database migrations were successful.