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\PostgreSql\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 21§

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

Other tests reaching this symbol 21

Relations§

Instantiated in 43
Method calls 7
Type declarations 19