pub async fn assert_table(
pool: &PgPool,
declared: &TableSchema,
) -> Result<(), SchemaCheckError>Expand description
Compare a declared table shape against the live database.
Reports every divergence at once instead of failing on the first.
ยงErrors
SchemaCheckError::Query if information_schema cannot be read;
SchemaCheckError::Mismatch listing all drifts otherwise.