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

A request to change the connection string of a subscription.

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

Reading the new connection stringdoctest
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze("ALTER SUBSCRIPTION s CONNECTION 'host=b'");
    $operation->statement->connection->value // => 'host=b'

Properties§

public Name $name
public StringConstant $connection

Methods§

public function __construct(public Name $name, public StringConstant $connection)

Parameters

$nameNameThe subscription name
$connectionStringConstantThe connection string
public function deriveStatement(Derivation $derivation): void

Derives nothing: subscriptions are not part of a declaration context.

Parameters

$derivationDerivation
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