final class AlterUserMapping
    implements Statement
    uses Snapshot
Public API: explicitly declared with @visibility public.

A request to change the options of a user mapping.

Rule: PG-USER-MAPPING-002. Mirrors AlterUserMappingStmt. Source: https://www.postgresql.org/docs/17/sql-alterusermapping.html. Status: Implemented.

Reading a user mappingdoctest
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze("ALTER USER MAPPING FOR bob SERVER s OPTIONS (SET password 'x')");
    $operation->toString() // => "ALTER USER MAPPING FOR bob SERVER s OPTIONS (SET password 'x')"

Properties§

public list<AlteredOption> $options
public Name $server

Methods§

public function __construct(
    public RoleSpec|MappingUser $user,
    public Name $server,
    list<AlteredOption> $options,
)

Parameters

$userRoleSpec|MappingUserThe user
$serverNameThe foreign server
$optionslist<AlteredOption>The options
Calls 2
public function deriveStatement(Derivation $derivation): void

Derives nothing: a user mapping is not part of a declaration context.

Parameters

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

Writes the request.

Parameters

$outOutput
Calls 4

Test cases 1§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1

Relations§

Instantiated in 1