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

Derives the row shape of the table a definition or administration command names, and the scope of its expressions.

Rule: SQLITE-DEFINITION-TARGET-001. The name resolves by CORE-TABLE-LOOKUP-001. A declared table contributes one slot per declared column, in order, each referring to the declaration, and an open shape when its column list is incomplete; an undeclared or conditionally resolved name contributes an open shape that names the missing declaration; a missing or conflicting name contributes an empty complete shape and is a diagnostic. The implicit columns of a declared table (the row identifier names) are found by name only and refer to the slot of the declared column they alias, when they alias one. Precision: every slot of a declared table is a known type. Terminates: one pass over the columns. Source: https://sqlite.org/lang_naming.html, https://sqlite.org/lang_createtable.html#rowid. Status: Implemented.

Methods§

public function implicit(Table $table, RowShape $shape): list<ImplicitSlot>

Answers the slots found by the implicit column names of a declaration; $shape must be its row shape.

Parameters

$tableTable
$shapeRowShape

Returns

Test cases 2
Called from 1
Calls 5
public function target(Derivation $derivation, QualifiedName $name): RelationFact

Resolves the name of an existing table and answers its facts.

Parameters

$derivationDerivation
$nameQualifiedName
Test cases 9
Called from 7
Calls 5
public function scope(
    Derivation $derivation,
    Relation $relation,
    QualifiedName $name,
    RowShape $shape,
    list<ImplicitSlot> $implicit,
): ConstraintScope

Test cases 15§

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

Dedicated tests 6
Other tests reaching this symbol 9

Relations§

Instantiated in 10
Method calls 14