interfaceCommonTables
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.
interface_exists(\SqlSemantics\Platform\PostgreSql\Statement\Query\CommonTables::class) // => trueMethods§
public function deriveCommonTables(Derivation $derivation, Environment $outer): EnvironmentDerives the common table expressions and answers the environment in which they are visible.
Parameters
$derivation | Derivation | |
$outer | Environment |
Returns
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
CommonTablesTestcalls
Relations§
Implemented by 1
Type declarations 15
- type SqlSemantics\Platform\PostgreSql\Lowering\Query\Queries packages/sql-semantics-postgres/src/Lowering/Query/Queries.php:152
- type SqlSemantics\Platform\PostgreSql\Rules\Manipulation\ModificationScope packages/sql-semantics-postgres/src/Rules/Manipulation/ModificationScope.php:46
- type SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Delete packages/sql-semantics-postgres/src/Statement/Manipulation/Delete.php:52
- type SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Delete packages/sql-semantics-postgres/src/Statement/Manipulation/Delete.php:72
- type SqlSemantics\Platform\PostgreSql\Statement\Manipulation\InsertDefaults packages/sql-semantics-postgres/src/Statement/Manipulation/InsertDefaults.php:51
- type SqlSemantics\Platform\PostgreSql\Statement\Manipulation\InsertDefaults packages/sql-semantics-postgres/src/Statement/Manipulation/InsertDefaults.php:71
- type SqlSemantics\Platform\PostgreSql\Statement\Manipulation\InsertRows packages/sql-semantics-postgres/src/Statement/Manipulation/InsertRows.php:63
- type SqlSemantics\Platform\PostgreSql\Statement\Manipulation\InsertRows packages/sql-semantics-postgres/src/Statement/Manipulation/InsertRows.php:87
- type SqlSemantics\Platform\PostgreSql\Statement\Manipulation\InsertSelect packages/sql-semantics-postgres/src/Statement/Manipulation/InsertSelect.php:67
- type SqlSemantics\Platform\PostgreSql\Statement\Manipulation\InsertSelect packages/sql-semantics-postgres/src/Statement/Manipulation/InsertSelect.php:92
- type SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Merge packages/sql-semantics-postgres/src/Statement/Manipulation/Merge.php:62
- type SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Merge packages/sql-semantics-postgres/src/Statement/Manipulation/Merge.php:84
- type SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Modification packages/sql-semantics-postgres/src/Statement/Manipulation/Modification.php:38
- type SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Update packages/sql-semantics-postgres/src/Statement/Manipulation/Update.php:64
- type SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Update packages/sql-semantics-postgres/src/Statement/Manipulation/Update.php:86