interface NamedRelation
    extends Relation
Public API: explicitly declared with @visibility public.

An input relation that is one named table, view or common table, optionally renamed.

Reading the name of a named inputdoctest
$query = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('SELECT a FROM t AS x');
    [$query->singleNamedInput()->name()->name->value, $query->singleNamedInput()->alias()?->value] // => ['t', 'x']

Methods§

public function name(): QualifiedName

Answers the relation name as the statement wrote it, decoded.

public function alias(): ?Name

Answers the correlation name that renames the occurrence, when one is given.

Returns

Relations§

Implemented by 2
Type checks 1
Type declarations 1