classWithRule
final class WithRule
Restricted visibility: declared "@visibility SqlSemantics\Platform\Sqlite". Code outside that scope must not name this declaration.
Lowers WITH clauses.
Rule: SQLITE-WITH-LOWER-001. Scope: with, wqlist, wqitem, wqas, withnm. The common table expressions keep their written order, column lists and materialization hints. Terminates: the list is flattened iteratively. Source: https://sqlite.org/lang_with.html. Status: Implemented.
Methods§
public function __construct(private Lowering $lowering)Parameters
$lowering | Lowering | The lowering this rule belongs to |
public function optional(Node $with): ?WithClauseLowers the with of a data change statement: the clause, or null when none is written.
Parameters
$with | Node |
Returns
Throws
ImplementationGap When the production has no ruleCalls 2
- method-call WithRule::clause() line 45
- static-call ImplementationGap::production() line 47
public function clause(Node $list, bool $recursive): WithClauseLowers a wqlist into a WITH clause.
Parameters
$list | Node | |
$recursive | bool |
Returns
Throws
ImplementationGap When a production has no ruleCalled from 2
Calls 5
- static-call ImplementationGap::production() line 60
- method-call Lists::items() line 63
- new Lists line 63
- method-call WithRule::table() line 64
- new WithClause line 67
public function table(Node $item): CommonTableLowers a wqitem into a common table expression.
Parameters
$item | Node |
Returns
Throws
ImplementationGap When a production has no ruleCalled from 1
Calls 4
- static-call ImplementationGap::production() line 80
- class-const Materialization::Materialized() line 91
- class-const Materialization::NotMaterialized() line 92
- new CommonTable line 96
Private surface 1§
Implementation details, listed for orientation only.
private Lowering $loweringTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
WithRuleTestcalls