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

A relation occurrence as one position of a query sees it: its shape and the names that qualify it.

An occurrence with neither alias nor name, such as the merged columns of a join, is found by unqualified names only.

Properties§

public Relation $relation
public RowShape $shape
public Name|null $alias = null
public QualifiedName|null $name = null
public list<int> $hidden = []
public list<ImplicitSlot> $implicit = []

Methods§

public function __construct(
    public Relation $relation,
    public RowShape $shape,
    public Name|null $alias = null,
    public QualifiedName|null $name = null,
    public list<int> $hidden = [],
    public list<ImplicitSlot> $implicit = [],
)

Parameters

$relationRelationThe occurrence
$shapeRowShapeThe row shape visible at this position
$aliasName|nullThe correlation name; when present it is the only qualifier
$nameQualifiedName|nullThe relation name that qualifies the occurrence when it has no alias
$hiddenlist<int>The slot positions an unqualified name and a star do not see, such as the duplicate of a merged join column
$implicitlist<ImplicitSlot>The slots found by name only

Test cases 22§

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

Other tests reaching this symbol 22

Relations§

Instantiated in 20
Constant reads 1
Type declarations 29