classAlterRoleSetting
final class AlterRoleSetting
implements Statement
uses Snapshot
Public API: explicitly declared with
@visibility public.A request to set or reset the default of a configuration parameter for a role, for every role, or for them in one database.
Rule: PG-ROLE-SET-001. Mirrors AlterRoleSetStmt: the role (none when ALL is written), the database of IN DATABASE and the SET or RESET request of the utility family, which is derived as the request it is. Reported: PUBLIC or a pg_ name as the role. Source: https://www.postgresql.org/docs/17/sql-alterrole.html. Status: Implemented.
is_subclass_of(\SqlSemantics\Platform\PostgreSql\Statement\Catalog\Access\Role\AlterRoleSetting::class, \SqlSemantics\Platform\PostgreSql\Model\Statement\Statement::class) // => trueProperties§
public RoleWord $wordpublic RoleSpec|null $rolepublic Name|null $databasepublic Statement $settingMethods§
public function __construct(
public RoleWord $word,
public RoleSpec|null $role,
public Name|null $database,
public Statement $setting,
)Parameters
Calls 2
- static-call Check::input() line 43
- class-const RoleWord::Group() line 43
public function deriveStatement(Derivation $derivation): voidReports the problems of the role and derives the SET or RESET request.
Parameters
$derivation | Derivation |
Calls 3
- method-call RoleChecks::alterable() line 52
- new RoleChecks line 52
- method-call Derivation::statement() line 54
public function render(Output $out): voidWrites the request.
Parameters
$out | Output |
Calls 3
- method-call Output::keyword() line 62
- method-call Output::node() line 66
- class-const NameUse::Column() line 68
Test cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
Relations§
Instantiated in 4
- new SqlSemantics\Platform\PostgreSql\Lowering\Access\RoleRule::statement() packages/sql-semantics-postgres/src/Lowering/Access/RoleRule.php:100
- new SqlSemantics\Platform\PostgreSql\Lowering\Access\RoleRule::statement() packages/sql-semantics-postgres/src/Lowering/Access/RoleRule.php:101
- new SqlSemantics\Platform\PostgreSql\Lowering\Access\RoleRule::statement() packages/sql-semantics-postgres/src/Lowering/Access/RoleRule.php:102
- new SqlSemantics\Platform\PostgreSql\Lowering\Access\RoleRule::statement() packages/sql-semantics-postgres/src/Lowering/Access/RoleRule.php:103