final class DottedName
    implements ObjectReference
    uses Snapshot
Public API: explicitly declared with @visibility public.

A name of one or more parts separated by dots, as any_name and func_name write it.

The grammar does not limit the number of parts; how many an object kind accepts is decided when the name is looked up, so the parts are kept as written. Up to three parts read as a relation-style name. Source: https://www.postgresql.org/docs/17/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS.

Reading a schema-qualified type namedoctest
$query = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze("SELECT pg_catalog.int4 '1'");
    $name = $query->statement->targets[0]->expression->type->designation->name;
    [$name->qualified()?->schema?->value, $name->last()->value] // => ['pg_catalog', 'int4']

Properties§

public non-empty-list<Name> $parts

Methods§

public function __construct(list<Name> $parts)

Parameters

$partslist<Name>The parts from the outermost qualifier to the object name; at least one
Calls 2
public function qualified(): ?QualifiedName

Answers the name as object, schema and catalog, or null when it has more than three parts.

Test cases 1
Called from 11
Calls 2
public function deriveClause(Derivation $derivation, Environment $environment): void

Derives nothing: a name holds no expression.

Parameters

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

Writes the parts separated by dots.

Parameters

$outOutput
Test cases 1
Calls 2

Test cases 181§

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

Dedicated tests 5
Other tests reaching this symbol 176

Relations§

Instantiated in 21
Method calls 15
Constant reads 2
Type checks 6
Type declarations 73