Skip to main content

Module mod_statements

Module mod_statements 

Source
Expand description

Validation for database and schema mod file statements.

Validates that mod files (database-level and schema-level) contain only permitted statement types: comments, grants, and alter default privileges targeting the correct database or schema.

Functionsยง

comment_object_type_name ๐Ÿ”’
Get a human-readable name for a CommentObjectType variant.
schema_name_matches ๐Ÿ”’
Returns true if target matches schema_name either unqualified or as database.schema.
validate_database_mod_statements ๐Ÿ”’
Validate database mod file statements.
validate_schema_mod_statements ๐Ÿ”’
Validate schema mod file statements and normalize names.