Skip to main content

Module model

Module model 

Source
Expand description

Normalized role-graph model.

These types represent the desired state or the current state of a PostgreSQL cluster’s roles, privileges, default privileges, and memberships. Both the manifest expansion and the database inspector produce these types, and the diff engine compares two RoleGraph instances.

Structs§

DefaultPrivKey
Unique key identifying a default privilege rule.
DefaultPrivState
The privilege set for a default privilege rule.
GrantKey
Unique key identifying a grant target — (grantee, object_type, schema, name).
GrantState
The privilege set on a particular grant target.
MembershipEdge
A membership edge — “member belongs to role”.
RoleGraph
Complete state of managed roles, grants, default privileges, and memberships.
RoleState
The set of PostgreSQL role attributes we manage.

Enums§

RoleAttribute
A single attribute change on a role, used by AlterRole.