Skip to main content

pending_migration

Function pending_migration 

Source
pub async fn pending_migration(
    pool: &PgPool,
) -> Result<Option<String>, OperationOutcomeError>
Expand description

Applies the search migrations that the database of pool lacks, then returns the migration creating what the search schema still needs, or None when the database lacks nothing.

ยงErrors

Returns an error if a migration fails (see crate::run) or the catalog cannot be read.