final class WithRule
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.

Lowers WITH clauses and their common table expressions.

Rule: PG-WITH-LOWER-001. Scope: opt_with_clause, with_clause, cte_list, common_table_expr, opt_materialized, opt_search_clause, opt_cycle_clause. Constructors: WithClause, CommonTableExpression, SearchClause, CycleClause. The statement of a common table is lowered by the manipulation family (PreparableStmt). Termination: lists are flattened iteratively. Source: https://www.postgresql.org/docs/17/queries-with.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe hub
public function materialization(Node $clause): ?Materialization
public function search(Node $clause): ?SearchClause
public function cycle(Node $clause): ?CycleClause

Lowers opt_cycle_clause; no clause is null.

Parameters

$clauseNode

Returns

Throws

ImplementationGap When the production has no rule
Test cases 1
Called from 1
Calls 2

Private surface 1§

Implementation details, listed for orientation only.

private Lowering $lowering

Test cases 5§

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

Dedicated tests 5

Relations§

Instantiated in 2
Method calls 2