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

The ordered output positions of a relation occurrence or query.

A shape is open when missing inputs prevent listing every position. The known positions are then still exact, but more may exist.

Reading a complete shapedoctest
$semantics = new \SqlSemantics\Platform\MySql\Semantics();
    $table = $semantics->analyze('CREATE TABLE t (a INTEGER, b TEXT)');
    $operation = $semantics->analyze('SELECT * FROM t', [$table]);
    [$operation->shape()->complete(), count($operation->shape()->slots)] // => [true, 2]

Properties§

public list<OutputSlot> $slots
public list<MissingInput> $missing

Methods§

public function __construct(list<OutputSlot> $slots, list<MissingInput> $missing = [])

Parameters

$slotslist<OutputSlot>The known positions in order
$missinglist<MissingInput>The inputs whose absence leaves the shape open
Calls 3
public function complete(): bool

Tells whether every output position is listed.

Returns

bool
Called from 1

Test cases 16§

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

Other tests reaching this symbol 16

Relations§

Instantiated in 40
Method calls 1
Type declarations 13