Skip to main content

check_schema

Function check_schema 

Source
pub async fn check_schema(pool: &SqlitePool) -> Result<(), SchemaError>
Expand description

Verifies the exact v2 table shape, constraints, indexes, and foreign key of the installed schema. It never applies a migration.

ยงErrors

Returns an error for an unsupported backend, missing or incompatible migration markers, tables, constraints or indexes, or failed catalog reads.