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

Types the sublinks: a query, or an array, used inside an expression.

Rule: PG-SUBLINK-001. A scalar subquery of one column has the column's type; of several columns it is a row, which only a row comparison accepts; of none it is reported. ARRAY(query) needs one column and gives an array of its type, an array column giving the same array type. A comparison with the rows of a query (IN, ANY, SOME, ALL) applies the operator to the value and the one column, or field by field to a row and as many columns; another number of columns is reported. A comparison with the elements of an array applies the operator to the value and the element type; a string constant on the right is read as an array of the value's type, and another non-array type is reported. A query of an open shape makes the result depend on its missing inputs. Termination: one pass over the columns. Source: https://www.postgresql.org/docs/17/functions-subquery.html, https://www.postgresql.org/docs/17/functions-comparisons.html, https://www.postgresql.org/docs/17/sql-expressions.html#SQL-SYNTAX-SCALAR-SUBQUERIES. Status: Implemented.

Methods§

public function value(Derivation $derivation, QueryFact $fact, string $construct): TypeFact

Test cases 6§

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

Dedicated tests 6

Relations§

Instantiated in 5
Method calls 5