pub async fn assert_table(
pool: &Pool<Postgres>,
declared: &TableSchema,
) -> Result<(), SchemaCheckError>Available on crate feature
postgres only.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.