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

The name of a configuration parameter, such as search_path or plpgsql.variable_conflict.

Mirrors the name of PostgreSQL's VariableSetStmt: the dotted parts in order. A parameter of an extension is written with the extension's prefix. Parameter names are compared without regard to case by the server, and an unquoted name is folded to lower case when it is read. Source: https://www.postgresql.org/docs/17/sql-set.html, https://www.postgresql.org/docs/17/runtime-config-custom.html.

Reading the text of a dotted parameter namedoctest
$name = new \SqlSemantics\Platform\PostgreSql\Statement\Utility\Session\ParameterName([new \SqlSemantics\Platform\PostgreSql\Model\Statement\Identifier\Name('plpgsql'), new \SqlSemantics\Platform\PostgreSql\Model\Statement\Identifier\Name('variable_conflict')]);
    $name->text() // => 'plpgsql.variable_conflict'
Refusing a name without partsdoctest
new \SqlSemantics\Platform\PostgreSql\Statement\Utility\Session\ParameterName([]) // throws \SqlSemantics\Platform\PostgreSql\Model\Diagnostic\InvalidConstruction

Properties§

public non-empty-list<Name> $parts

Methods§

public function __construct(list<Name> $parts)

Parameters

$partslist<Name>The dotted parts in order; at least one
Calls 2
public function text(): string

Answers the name as the server receives it: the parts joined by dots.

Returns

string
Test cases 1
Calls 1
public function render(Output $out): void

Writes the parts separated by dots.

Parameters

$outOutput
Calls 2

Test cases 2§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1
Other tests reaching this symbol 1

Relations§

Instantiated in 1
Type checks 1
Type declarations 5