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

Tells which queries a statement may hold where the grammar writes SelectStmt.

Rule: PG-QUERY-SOURCE-001. A SelectStmt is a selection, TABLE, VALUES, a set operation, a query with WITH, ORDER BY, LIMIT or locking clauses, or one of these in parentheses. For INSERT, a VALUES list alone, in any number of parentheses, is the VALUES rows of the INSERT, not its query. Termination: one walk down the parentheses. Source: https://www.postgresql.org/docs/17/sql-insert.html. Status: Implemented.

Methods§

public function insertable(Query $query): bool

Tells whether a query can be the query of an INSERT: a SelectStmt that is not VALUES alone in parentheses or none.

Parameters

$queryQuery

Returns

bool
Test cases 1
Called from 1
Calls 1

Test cases 3§

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

Dedicated tests 3

Relations§

Instantiated in 4
Method calls 4