enumRoleMembersKind
enum RoleMembersKind: string
Public API: explicitly declared with
@visibility public.The role options that list other roles: the value of a case is its keywords.
ROLE and USER list the members of the new role, ADMIN lists members that may grant the membership, IN ROLE and IN GROUP list the roles the new role becomes a member of. USER and IN GROUP are obsolete spellings of ROLE and IN ROLE; each spelling is kept as written. Source: https://www.postgresql.org/docs/17/sql-createrole.html.
\SqlSemantics\Platform\PostgreSql\Statement\Catalog\Access\Role\RoleMembersKind::InGroup->option() // => 'addroleto'Cases§
case User = 'USER'case Role = 'ROLE'case Admin = 'ADMIN'case InRole = 'IN ROLE'case InGroup = 'IN GROUP'Methods§
public function option(): stringAnswers the option of the server the spelling fills.
Returns
stringCalled from 1
Calls 5
- class-const RoleMembersKind::User() line 34
- class-const RoleMembersKind::Role() line 34
- class-const RoleMembersKind::Admin() line 35
- class-const RoleMembersKind::InRole() line 36
- class-const RoleMembersKind::InGroup() line 36
Test cases 5§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 4
Relations§
Method calls 1
Constant reads 6
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Access\RoleRule packages/sql-semantics-postgres/src/Lowering/Access/RoleRule.php:65
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Access\RoleRule packages/sql-semantics-postgres/src/Lowering/Access/RoleRule.php:66
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Access\RoleRule packages/sql-semantics-postgres/src/Lowering/Access/RoleRule.php:67
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Access\RoleRule packages/sql-semantics-postgres/src/Lowering/Access/RoleRule.php:68
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Access\RoleRule packages/sql-semantics-postgres/src/Lowering/Access/RoleRule.php:69
- class-const SqlSemantics\Platform\PostgreSql\Statement\Catalog\Access\Role\AlterRole::__construct() packages/sql-semantics-postgres/src/Statement/Catalog/Access/Role/AlterRole.php:52