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

A request to change the functions or options of a foreign-data wrapper.

Rule: PG-FDW-002. Mirrors AlterFdwStmt. At least one function clause or option change is written. NO HANDLER and NO VALIDATOR remove the function. Source: https://www.postgresql.org/docs/17/sql-alterforeigndatawrapper.html. Status: Implemented.

Removing the validatordoctest
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('ALTER FOREIGN DATA WRAPPER w NO VALIDATOR');
    $operation->statement->functions[0]->function // => null

Properties§

public list<FunctionClause> $functions
public list<AlteredOption> $options
public Name $name

Methods§

public function __construct(
    public Name $name,
    list<FunctionClause> $functions = [],
    list<AlteredOption> $options = [],
)

Parameters

$nameNameThe wrapper name
$functionslist<FunctionClause>The handler and validator clauses in the order written
$optionslist<AlteredOption>The option changes
Calls 4
public function deriveStatement(Derivation $derivation): void

Reports a function role named twice.

Parameters

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

Writes the request.

Parameters

$outOutput
Calls 5

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