final class TableShapes
Restricted visibility: declared "@visibility SqlSemantics\Platform\Sqlite". Code outside that scope must not name this declaration.

Derives the row shape of one use of a named relation.

Rule: SQLITE-TABLE-SHAPE-001. An unqualified name denotes the nearest common table of that name, then a declared relation found along the schema search path. A declared relation contributes one slot per declared column, in order, each referring to the declaration, and is open when its column list is incomplete; a common table contributes the slots it was bound with; an undeclared or conditionally resolved name contributes an open shape that names the missing declaration; a missing or conflicting name contributes an empty shape and is a diagnostic. The implicit columns of a declared table (rowid and its aliases) are reachable by name only. Source: https://sqlite.org/lang_naming.html, https://sqlite.org/lang_with.html, https://sqlite.org/rowidtable.html. Status: Implemented.

Methods§

public function fact(
    Derivation $derivation,
    QualifiedName $name,
    Environment $environment,
): RelationFact

Resolves a relation name at a position and derives the shape of the use.

Parameters

$derivationDerivation
$nameQualifiedName
$environmentEnvironment
Test cases 20
Called from 5
Calls 7

Test cases 20§

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

Dedicated tests 5
Other tests reaching this symbol 15

Relations§

Instantiated in 8
Method calls 8