classParameterName
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.
$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'new \SqlSemantics\Platform\PostgreSql\Statement\Utility\Session\ParameterName([]) // throws \SqlSemantics\Platform\PostgreSql\Model\Diagnostic\InvalidConstructionProperties§
public non-empty-list<Name> $partsMethods§
public function __construct(list<Name> $parts)Parameters
$parts | list<Name> | The dotted parts in order; at least one |
Calls 2
- static-call Check::listOf() line 44
- class-const Name::class() line 44
public function text(): stringAnswers the name as the server receives it: the parts joined by dots.
Returns
stringTest cases 1
Calls 1
- function-call
implodeline 57
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
- type SqlSemantics\Platform\PostgreSql\Lowering\Utility\SettingRule packages/sql-semantics-postgres/src/Lowering/Utility/SettingRule.php:195
- type SqlSemantics\Platform\PostgreSql\Statement\Utility\Session\Reset packages/sql-semantics-postgres/src/Statement/Utility/Session/Reset.php:32
- type SqlSemantics\Platform\PostgreSql\Statement\Utility\Session\SetParameter packages/sql-semantics-postgres/src/Statement/Utility/Session/SetParameter.php:47
- type SqlSemantics\Platform\PostgreSql\Statement\Utility\Session\SetParameterFrom packages/sql-semantics-postgres/src/Statement/Utility/Session/SetParameterFrom.php:34
- type SqlSemantics\Platform\PostgreSql\Statement\Utility\Session\Show packages/sql-semantics-postgres/src/Statement/Utility/Session/Show.php:50