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

A relation name declared in a later searched schema while an earlier schema is not completely known.

An undeclared relation of the earlier schema would be found first, so the known declaration is a candidate and not the resolution.

Keeping a declaration that an unknown earlier schema could shadowdoctest
$semantics = new \SqlSemantics\Platform\Sqlite\Semantics();
    $declarations = $semantics->context([$semantics->analyze('CREATE TABLE main.t (a INTEGER)')], false);
    $query = $semantics->analyze('SELECT a FROM t', $declarations);
    count($query->facts->relation($query->inputRelation())->table->candidates) // => 1

Properties§

public non-empty-list<Table> $candidates

Methods§

public function __construct(list<Table> $candidates, public UndeclaredRelation $missing)

Parameters

$candidateslist<Table>The declarations found in the later schema; at least one
$missingUndeclaredRelationThe possibly existing relation of an earlier schema
Calls 2

Test cases 4§

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 2

Relations§

Instantiated in 1
Type checks 2