final class RelationFact
    uses Snapshot
Public API: explicitly declared with @visibility public.

What an operation derived for one relation occurrence or one table use.

Reading the shape of a named inputdoctest
$semantics = new \SqlSemantics\Platform\Sqlite\Semantics();
    $table = $semantics->analyze('CREATE TABLE t (a INTEGER, b TEXT)');
    $query = $semantics->analyze('SELECT a FROM t', [$table]);
    count($query->facts->relation($query->inputRelation())->shape->slots) // => 2

Properties§

public RowShape $shape
public TableResolution|null $table = null

Methods§

public function __construct(public RowShape $shape, public TableResolution|null $table = null)

Parameters

$shapeRowShapeThe ordered output positions the occurrence contributes
$tableTableResolution|nullThe resolution of the relation name, when the occurrence names one

Test cases 3§

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

Dedicated tests 1
Other tests reaching this symbol 2

Relations§

Instantiated in 14
Type declarations 26