final class DeclaredTable
    implements TableResolution
    uses Snapshot
Public API: explicitly declared with @visibility public.

A relation name that denotes exactly one declaration of the context.

Reaching the supplied declaration objectdoctest
$semantics = new \SqlSemantics\Platform\Sqlite\Semantics();
    $table = $semantics->analyze('CREATE TABLE t (a INTEGER)');
    $query = $semantics->analyze('SELECT a FROM t', [$table]);
    $query->facts->relation($query->inputRelation())->table->table === $table->declarations()[0] // => true

Properties§

public Table $table

Methods§

public function __construct(public Table $table)

Parameters

$tableTableThe declaration object of the context

Test cases 34§

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 32

Relations§

Instantiated in 2
Type checks 8