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

Test cases 43§

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

Dedicated tests 2
Other tests reaching this symbol 41

Relations§

Instantiated in 21
Method calls 1
Type declarations 13