classAlterPublicationOptions
final class AlterPublicationOptions
implements Statement
uses Snapshot
Public API: explicitly declared with
@visibility public.A request to change the parameters of a publication: ALTER PUBLICATION name SET ( parameter = value, ... ).
Rule: PG-PUBLICATION-003. Mirrors AlterPublicationStmt with options. Source: https://www.postgresql.org/docs/17/sql-alterpublication.html. Status: Implemented.
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze("ALTER PUBLICATION p SET (publish = 'update')");
$operation->statement->options[0]->name->value // => 'publish'Properties§
public non-empty-list<Definition> $optionspublic Name $nameMethods§
public function __construct(public Name $name, list<Definition> $options)Parameters
$name | Name | The publication name |
$options | list<Definition> | The parameters; at least one |
Calls 2
- static-call Check::listOf() line 43
- class-const Definition::class() line 43
public function deriveStatement(Derivation $derivation): voidDerives the parameter values.
Parameters
$derivation | Derivation |
Calls 2
- method-call ClauseFacts::derive() line 51
- new ClauseFacts line 51
public function render(Output $out): voidWrites the request.
Parameters
$out | Output |
Calls 2
- method-call Output::keyword() line 59
- class-const NameUse::Column() line 59
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.