final class ServerVersion
    implements Node
    uses Snapshot
Public API: explicitly declared with @visibility public.

The VERSION clause of a foreign server: a version string, or NULL to clear it.

Source: https://www.postgresql.org/docs/17/sql-createserver.html, https://www.postgresql.org/docs/17/sql-alterserver.html.

Clearing the versiondoctest
(new \SqlSemantics\Platform\PostgreSql\Statement\Catalog\ForeignData\ServerVersion())->version // => null

Properties§

public StringConstant|null $version = null

Methods§

public function __construct(public StringConstant|null $version = null)

Parameters

$versionStringConstant|nullThe version; null for VERSION NULL
public function render(Output $out): void

Writes VERSION and the version or NULL.

Parameters

$outOutput
Test cases 1
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 2
Type declarations 3