classRefreshSubscription
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.
$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> $optionspublic Name $nameMethods§
public function __construct(public Name $name, list<Definition> $options = [])Parameters
$name | Name | The subscription name |
$options | list<Definition> | The refresh options |
Calls 2
- static-call Check::listOf() line 43
- class-const Definition::class() line 43
public function deriveStatement(Derivation $derivation): voidDerives the option 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.
Dedicated tests 1
RefreshSubscriptionTestcalls