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

Lowers the productions of a_expr that compare a value with a query or a list.

Rule: PG-EXPRESSION-SUBLINK-001. Scope: a_expr [NOT] IN in_expr, a_expr subquery_Op sub_type select_with_parens, a_expr subquery_Op sub_type ( a_expr ), UNIQUE opt_unique_null_treatment select_with_parens, and in_expr, sub_type, subquery_Op. Constructors: InList, InSubquery, QuantifiedSubquery, QuantifiedArray, UniquePredicate. The query in the parentheses is lowered by the query family without those parentheses. Termination: each operand is a strictly smaller subtree. Source: https://www.postgresql.org/docs/17/functions-subquery.html, https://www.postgresql.org/docs/17/functions-comparisons.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe hub

Private surface 3§

Implementation details, listed for orientation only.

private const QUANTIFIERS = ['sub_type: ANY' => \SqlSemantics\Platform\PostgreSql\Statement\Expression\Subq…
private const KEYWORDS = ['subquery_Op: LIKE' => \SqlSemantics\Platform\PostgreSql\Statement\Expression\…
private Lowering $lowering

Test cases 4§

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

Dedicated tests 4

Relations§

Instantiated in 1
Method calls 1