classPrivileges
final class Privileges
The entry point of the access family: roles, privileges, role membership, default privileges and owned objects.
Rule: PG-ACCESS-001. Scope: the statement nonterminals of the family (CreateRoleStmt, CreateUserStmt, CreateGroupStmt, AlterRoleStmt, AlterRoleSetStmt, AlterGroupStmt, DropRoleStmt, GrantStmt, RevokeStmt, GrantRoleStmt, RevokeRoleStmt, AlterDefaultPrivilegesStmt, DropOwnedStmt, ReassignOwnedStmt), each handed to the rule of its group. Termination: each statement is lowered by one rule; lists are flattened iteratively. Source: https://www.postgresql.org/docs/17/sql-commands.html. Status: Implemented.
Methods§
Lowers a statement of the family, such as CreateRoleStmt, GrantStmt, RevokeRoleStmt or AlterDefaultPrivilegesStmt.
Parameters
$statement | Node |
Returns
Throws
ImplementationGap When the nonterminal is not a statement of the familyTest cases 1
Called from 1
Calls 10
- class-const Privileges::GROUPS() line 53
- static-call ImplementationGap::production() line 53
- method-call RoleRule::statement() line 56
- new RoleRule line 56
- method-call GrantRule::statement() line 57
- new GrantRule line 57
- method-call MembershipRule::statement() line 58
- new MembershipRule line 58
- method-call DefaultPrivilegeRule::statement() line 59
- new DefaultPrivilegeRule line 59
Private surface 2§
Implementation details, listed for orientation only.
private const GROUPS = ['CreateRoleStmt' => 'role', 'CreateUserStmt' => 'role', 'CreateGroupStmt' => '…private Lowering $loweringTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.