final class Word
    implements OptionArgument
    uses Snapshot
Public API: explicitly declared with @visibility public.

An identifier or non-reserved keyword written as an option or parameter value.

The server receives the decoded word as text, so SET search_path TO Public passes public. Source: https://www.postgresql.org/docs/17/sql-set.html.

Reading the text of a word valuedoctest
(new \SqlSemantics\Platform\PostgreSql\Statement\Option\Word(new \SqlSemantics\Platform\PostgreSql\Model\Statement\Identifier\Name('public')))->word->value // => 'public'

Properties§

public Name $word

Methods§

public function __construct(public Name $word)

Parameters

$wordNameThe decoded word
public function deriveClause(Derivation $derivation, Environment $environment): void

Derives nothing: a word holds no expression.

Parameters

$derivationDerivation
$environmentEnvironment
Test cases 1
public function render(Output $out): void

Writes the word where the grammar reads a non-reserved word.

Parameters

$outOutput
Test cases 1
Calls 2

Test cases 14§

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

Dedicated tests 2
Other tests reaching this symbol 12

Relations§

Instantiated in 1
Constant reads 1
Type checks 13
Type declarations 9