classAlterSubscriptionConnection
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.
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze("ALTER SUBSCRIPTION s CONNECTION 'host=b'");
$operation->statement->connection->value // => 'host=b'Properties§
public Name $namepublic StringConstant $connectionMethods§
public function __construct(public Name $name, public StringConstant $connection)Parameters
$name | Name | The subscription name |
$connection | StringConstant | The connection string |
public function deriveStatement(Derivation $derivation): voidDerives nothing: subscriptions are not part of a declaration context.
Parameters
$derivation | Derivation |
public function render(Output $out): voidWrites the request.
Parameters
$out | Output |
Calls 2
- method-call Output::keyword() line 50
- class-const NameUse::Column() line 50
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.