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Β§
EnumsΒ§
- Comment
Inconsistency π - Internal
Fields πInconsistency - Item
Inconsistency π - Object
Dependency πInconsistency - Role
Inconsistency π
FunctionsΒ§
- check_
create_ πsql - Checks that
create_sqlparses 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 whencacheholds the sameinputsforidfrom an earlier check that passed. Recordsinputsforidwhen the check passes.
Type AliasesΒ§
- Checked
Create πSql - For each item, the inputs of its last passing
check_create_sql, in that functionβs argument order.