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.