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

Lowers FROM clauses into input relations.

Rule: SQLITE-FROM-LOWER-001. Scope: from, seltablist, stl_prefix, joinop, on_using, indexed_opt, indexed_by. One term without a constraint is that term; anything else is a chain of the terms in written order, each with the operator before it and the constraint after it. A word before JOIN is a join keyword when it is written as one and a name otherwise. Terminates: the term list is walked along its spine in a loop; recursion follows parentheses. Source: https://sqlite.org/lang_select.html#the_from_clause. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe lowering this rule belongs to
public function from(Node $from): ?Relation

Lowers a from: the input relation, or null when the clause is absent.

Parameters

$fromNode

Returns

Throws

ImplementationGap When the production has no rule
Calls 2
public function operator(Node $operator): JoinOperator

Lowers a joinop.

Parameters

$operatorNode

Throws

ImplementationGap When the production has no rule
Called from 1
Calls 5
public function word(Node $name): JoinKeyword|Name
public function constraint(Node $constraint): JoinOn|JoinUsing|null

Lowers an on_using: the constraint, or null when none is written.

Parameters

$constraintNode

Returns

Throws

ImplementationGap When the production has no rule
Called from 1
Calls 3
public function optionalIndexed(Node $clause): ?IndexChoice

Lowers an indexed_opt: the index choice, or null when none is written.

Parameters

$clauseNode

Returns

Throws

ImplementationGap When the production has no rule
Calls 2

Private surface 1§

Implementation details, listed for orientation only.

private Lowering $lowering

Test cases 1§

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

Dedicated tests 1

Relations§

Instantiated in 1
Type declarations 1