interfaceNamedRelation
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.
$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(): QualifiedNameAnswers the relation name as the statement wrote it, decoded.