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

Relations§

Instantiated in 36
Type declarations 53