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.

Changing what is publisheddoctest
$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> $options
public Name $name

Methods§

public function __construct(public Name $name, list<Definition> $options)

Parameters

$nameNameThe publication name
$optionslist<Definition>The parameters; at least one
Calls 2
public function deriveStatement(Derivation $derivation): void

Derives the parameter values.

Parameters

$derivationDerivation
Calls 2
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 1