classRoles
final class Roles
Lowers role specifications.
Rule: PG-ROLE-001. Scope: RoleSpec, RoleId, role_list. Constructor: RoleSpec. The word public, quoted or not, designates every role; the word none is reserved and rejected by the grammar action. RoleId is a position that takes a role name only, so every designation there is rejected by the grammar action as well. Termination: the list is flattened iteratively. Source: https://www.postgresql.org/docs/17/sql-grant.html, https://www.postgresql.org/docs/17/sql-createrole.html. Status: Implemented.
Methods§
Lowers RoleSpec.
Parameters
$role | Node |
Returns
Throws
AnalysisException When the role is named none, which the action of `RoleSpec: NonReservedWord` in `gram.y` rejectsImplementationGap When the production has no ruleCalled from 2
Calls 8
- new AnalysisException line 49
- new RoleSpec line 52
- class-const RoleSpecKind::Everyone() line 52
- class-const RoleSpecKind::Named() line 52
- class-const RoleSpecKind::CurrentRole() line 56
- class-const RoleSpecKind::CurrentUser() line 57
- class-const RoleSpecKind::SessionUser() line 58
- static-call ImplementationGap::production() line 59
Lowers RoleId: a position that names a role and accepts no designation.
Parameters
$role | Node |
Returns
Throws
AnalysisException When a designation is written, which the action of `RoleId: RoleSpec` in `gram.y` rejectsImplementationGap When the production has no ruleCalls 3
- static-call ImplementationGap::production() line 73
- method-call Roles::role() line 76
- new AnalysisException line 76
Lowers role_list.
Parameters
$list | Node |
Returns
list<RoleSpec>Calls 2
- method-call Lowering::items() line 87
- method-call Roles::role() line 88
Private surface 1§
Implementation details, listed for orientation only.
private Lowering $loweringTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
RolesTestcalls