Skip to main content

Module references

Module references 

Source
Expand description

Reference validation for supporting statements.

Validates that indexes, grants, and comments reference the main object defined in the same file, ensuring each file is self-contained.

Functionsยง

check_grant_object_type ๐Ÿ”’
Validates that the GRANT statement uses the correct object type for the target object.
comment_object_to_target ๐Ÿ”’
Extract the target name and ObjectType from a CommentObjectType.
validate_comment_references ๐Ÿ”’
Validates that all COMMENT statements in a file reference the main object.
validate_comment_target ๐Ÿ”’
Validates that a COMMENT statement targets the correct object with the correct type.
validate_grant_references ๐Ÿ”’
Validates that all GRANT statements reference the main object with the correct type.
validate_index_references ๐Ÿ”’
Validates that all CREATE INDEX statements reference the main object.