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.

Telling that the request is a statement of its owndoctest
is_subclass_of(\SqlSemantics\Platform\PostgreSql\Statement\Catalog\Access\Role\AlterRoleSetting::class, \SqlSemantics\Platform\PostgreSql\Model\Statement\Statement::class) // => true

Properties§

public RoleWord $word
public RoleSpec|null $role
public Name|null $database
public Statement $setting

Methods§

public function __construct(
    public RoleWord $word,
    public RoleSpec|null $role,
    public Name|null $database,
    public Statement $setting,
)

Parameters

$wordRoleWordThe statement word: ROLE or USER
$roleRoleSpec|nullThe role; null when ALL is written
$databaseName|nullThe database of IN DATABASE, when written
$settingStatementThe SET or RESET request
Calls 2
public function deriveStatement(Derivation $derivation): void

Reports the problems of the role and derives the SET or RESET request.

Parameters

$derivationDerivation
Calls 3
public function render(Output $out): void

Writes the request.

Parameters

$outOutput
Calls 3

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