pub async fn wait_for_schema(
db: &Database,
__arg1: (&str, &str),
retry: Duration,
) -> Result<(), AppError>Expand description
Waits until db’s schema is usable by this binary, checking every retry and saying what
it waits for whenever that changes (the database unreachable, then a schema to migrate, …;
the master, or schedr db migrate, migrates it), so a webserver started before the
migration serves once it is done instead of failing.
§Errors
AppError::BadArgument for an earlier schedr’s schema, which no migration makes usable.