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

A request to fetch the current table list of the subscribed publications: ALTER SUBSCRIPTION name REFRESH PUBLICATION.

Rule: PG-SUBSCRIPTION-004. Mirrors AlterSubscriptionStmt of kind ALTER_SUBSCRIPTION_REFRESH. Source: https://www.postgresql.org/docs/17/sql-altersubscription.html. Status: Implemented.

Refreshing without copying datadoctest
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('ALTER SUBSCRIPTION s REFRESH PUBLICATION WITH (copy_data = false)');
    $operation->toString() // => 'ALTER SUBSCRIPTION s REFRESH PUBLICATION WITH (copy_data = FALSE)'

Properties§

public list<Definition> $options
public Name $name

Methods§

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

Parameters

$nameNameThe subscription name
$optionslist<Definition>The refresh options
Calls 2
public function deriveStatement(Derivation $derivation): void

Derives the option 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