Skip to main content

Module roles

Module roles 

Source
Expand description

Role definition loading and validation.

Loads role definitions from <root>/roles/ directory. Each .sql file defines a single role with a required CREATE ROLE statement and optional ALTER ROLE, GRANT ROLE, and COMMENT statements.

Structsยง

RoleDefinition ๐Ÿ”’
A parsed role definition from a .sql file in the roles/ directory.

Functionsยง

classify_role_statements ๐Ÿ”’
Classify parsed statements into a RoleDefinition, returning validation errors.
load_roles ๐Ÿ”’
Load all role definitions from <root>/roles/.