interface CommonTables
    extends Node
Public API: explicitly declared with @visibility public.

A WITH clause: the common table expressions a query or a data-modifying statement can refer to.

Mirrors PostgreSQL's WithClause node. The statement that holds the clause derives it once and evaluates its own parts in the environment the clause answers, where the common tables are visible. Source: https://www.postgresql.org/docs/17/queries-with.html.

Naming the contract a WITH clause fulfilsdoctest
interface_exists(\SqlSemantics\Platform\PostgreSql\Statement\Query\CommonTables::class) // => true

Methods§

public function deriveCommonTables(Derivation $derivation, Environment $outer): Environment

Derives the common table expressions and answers the environment in which they are visible.

Parameters

$derivationDerivation
$outerEnvironment

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§

Implemented by 1
Type declarations 15