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

Lowers c_expr, columnref and the indirection steps.

Rule: PG-EXPRESSION-PRIMARY-001. Scope: c_expr (column references, constants, parameters, parenthesized expressions, CASE, function calls, scalar, EXISTS and ARRAY subqueries, array and row constructors, GROUPING), columnref, indirection, opt_indirection, indirection_el and opt_slice_bound. A dotted name followed only by field names is a ColumnReference; one that ends in .* is a ColumnStar; the steps from the first subscript on, or after a .*, make an Indirection of it, as PostgreSQL's makeColumnRef splits them. Function calls go to the invocation family, queries to the query family. Termination: the indirection list is flattened iteratively. Source: https://www.postgresql.org/docs/17/sql-expressions.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe hub
public function bound(Node $bound): ?Scalar

Lowers opt_slice_bound; an omitted bound is null.

Parameters

$boundNode

Returns

Throws

ImplementationGap When the production has no rule
Test cases 1
Called from 1
Calls 1

Private surface 1§

Implementation details, listed for orientation only.

private Lowering $lowering

Test cases 8§

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

Dedicated tests 8

Relations§

Instantiated in 4
Method calls 4