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

Derives a query that is a whole statement: its rows, or the table SELECT INTO creates.

Rule: PG-SELECT-INTO-001. A query statement returns its rows. When the first selection of the statement (the one reached through parentheses, WITH clauses and the first operands of set operations) has an INTO clause, the statement returns no rows and declares the new table instead: one column per output field, of the type the field gives a defined column (PG-DECLARED-TYPE-001) and able to be NULL; a table with an output whose name or position is not known (an open row) or whose type is invalid is declared incomplete up to that output. INTO anywhere else is reported. Data-modifying common tables outside the top-level WITH clause are reported (PG-MODIFYING-CTE-001). Source: https://www.postgresql.org/docs/17/sql-selectinto.html. Status: Implemented.

Methods§

public function derive(Query $root, Derivation $derivation): void

Derives the statement and records its rows or its declaration.

Parameters

$rootQuery
$derivationDerivation
Called from 6
Calls 14

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 8
Method calls 8