final class Spelling
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.

Writes the spellings several PostgreSQL structure values share.

Rule: PG-SPELLING-001. A string constant is written between single quotes with each quote doubled, which reads back as the same value under standard_conforming_strings = on. A dotted name writes its first part where the grammar reads a ColId and every later part where it reads a ColLabel. Source: https://www.postgresql.org/docs/17/sql-syntax-lexical.html. Status: Implemented.

Methods§

public function string(string $value): string

Spells a string value as a string constant.

Parameters

$valuestring

Returns

string
Test cases 1
Called from 1
Calls 3
public function dotted(
    Output $out,
    list<Name> $parts,
    NameUse $single = NameUse::Qualifier,
): void

Writes name parts separated by dots; a single part is written for the given position.

Parameters

$outOutput
$partslist<Name>
$singleNameUse
Test cases 2
Called from 9
Calls 5
public function qualified(
    Output $out,
    QualifiedName $name,
    NameUse $single = NameUse::Relation,
): void

Writes a relation name with its schema and catalog qualifiers.

Parameters

Test cases 1
Called from 26
Calls 2

Test cases 5§

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

Dedicated tests 5

Relations§

Instantiated in 37
Method calls 37