classAlterFdw
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.
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('ALTER FOREIGN DATA WRAPPER w NO VALIDATOR');
$operation->statement->functions[0]->function // => nullProperties§
public list<FunctionClause> $functionspublic list<AlteredOption> $optionspublic Name $nameMethods§
public function __construct(
public Name $name,
list<FunctionClause> $functions = [],
list<AlteredOption> $options = [],
)Parameters
$name | Name | The wrapper name |
$functions | list<FunctionClause> | The handler and validator clauses in the order written |
$options | list<AlteredOption> | The option changes |
Calls 4
- static-call Check::listOf() line 51
- class-const FunctionClause::class() line 51
- class-const AlteredOption::class() line 52
- static-call Check::input() line 53
public function deriveStatement(Derivation $derivation): voidReports a function role named twice.
Parameters
$derivation | Derivation |
Calls 2
- method-call ForeignOptions::functions() line 61
- new ForeignOptions line 61
public function render(Output $out): voidWrites the request.
Parameters
$out | Output |
Calls 5
- method-call Output::keyword() line 69
- class-const NameUse::Column() line 69
- method-call Output::node() line 71
- method-call ForeignOptions::write() line 73
- new ForeignOptions line 73
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
- new SqlSemantics\Platform\PostgreSql\Lowering\Catalog\ForeignDataRule::statement() packages/sql-semantics-postgres/src/Lowering/Catalog/ForeignDataRule.php:77
- new SqlSemantics\Platform\PostgreSql\Lowering\Catalog\ForeignDataRule::statement() packages/sql-semantics-postgres/src/Lowering/Catalog/ForeignDataRule.php:78