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

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

Other tests reaching this symbol 18

Relations§

Instantiated in 3
Type checks 17
Type declarations 3