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\Sqlite\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

Test cases 1§

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

Dedicated tests 1

Relations§

Implemented by 3
Type checks 4
Type declarations 1