providers.mongodb.migrations.check_db_version()
Verify that the database is at target_version, raising an error if not.
Usage
providers.mongodb.migrations.check_db_version(
*,
config,
target_version,
)This function can be used to verify DB state separately from the core migration logic.
Raises: - DbVersionMismatchError: If the current DB version doesn’t match target_version.