classAlterUserMapping
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.
$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> $optionspublic RoleSpec|MappingUser $userpublic Name $serverMethods§
public function __construct(
public RoleSpec|MappingUser $user,
public Name $server,
list<AlteredOption> $options,
)Parameters
$user | RoleSpec|MappingUser | The user |
$server | Name | The foreign server |
$options | list<AlteredOption> | The options |
Calls 2
- static-call Check::listOf() line 45
- class-const AlteredOption::class() line 45
public function deriveStatement(Derivation $derivation): voidDerives nothing: a user mapping is not part of a declaration context.
Parameters
$derivation | Derivation |
public function render(Output $out): voidWrites the request.
Parameters
$out | Output |
Calls 4
- method-call Output::keyword() line 60
- class-const NameUse::Column() line 61
- method-call ForeignOptions::write() line 62
- new ForeignOptions line 62
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
AlterUserMappingTestcalls