Skip to main content

Module consistency

Module consistency 

Source
Expand description

Internal consistency checks that validate invariants of CatalogState.

Note: the implementation of consistency checks should favor simplicity over performance, to make it as easy as possible to understand what a given check is doing. The exception is the CheckedCreateSql cache in check_items, which skips re-parsing unchanged create_sql because the check runs after every catalog transaction in tests.

StructsΒ§

CatalogInconsistencies

EnumsΒ§

CommentInconsistency πŸ”’
InternalFieldsInconsistency πŸ”’
ItemInconsistency πŸ”’
ObjectDependencyInconsistency πŸ”’
RoleInconsistency πŸ”’

FunctionsΒ§

check_create_sql πŸ”’
Checks that create_sql parses to a single statement and, for the statement kinds matched below, that its name is fully qualified and matches the given names.
check_create_sql_cached πŸ”’
check_create_sql, skipped when cache holds the same inputs for id from an earlier check that passed. Records inputs for id when the check passes.

Type AliasesΒ§

CheckedCreateSql πŸ”’
For each item, the inputs of its last passing check_create_sql, in that function’s argument order.