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

A request to remove a user mapping.

Rule: PG-USER-MAPPING-003. Mirrors DropUserMappingStmt. Source: https://www.postgresql.org/docs/17/sql-dropusermapping.html. Status: Implemented.

Reading a user mappingdoctest
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('DROP USER MAPPING IF EXISTS FOR CURRENT_USER SERVER s');
    $operation->toString() // => 'DROP USER MAPPING IF EXISTS FOR CURRENT_USER SERVER s'

Properties§

public bool $ifExists
public Name $server

Methods§

public function __construct(
    public bool $ifExists,
    public RoleSpec|MappingUser $user,
    public Name $server,
)

Parameters

$ifExistsboolWhether IF EXISTS is written
$userRoleSpec|MappingUserThe user
$serverNameThe foreign server
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 2

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 2