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

Lowers the SQL-syntax functions of func_expr_common_subexpr and routes the textual, XML and JSON ones to their rules.

Rule: PG-SYNTAX-LOWERING-001. Scope: func_expr_common_subexpr. Constructors: ValueFunction (CURRENT_DATE … CURRENT_SCHEMA, SYSTEM_USER), CollationFor, Cast of the expression family with the function spelling, Normalize, Treat, NullIf, Coalesce, MinMax, MergeAction; EXTRACT, OVERLAY, POSITION, SUBSTRING and TRIM go to TextRule, the XML functions to XmlRule, the JSON functions to JsonRule and JsonQueryRule. Termination: constant work per node. Source: https://www.postgresql.org/docs/17/functions.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe hub
public function subexpression(Node $subexpression): Scalar

Private surface 3§

Implementation details, listed for orientation only.

private const VALUES = ['func_expr_common_subexpr: CURRENT_DATE' => \SqlSemantics\Platform\PostgreSql\…
private const PRECISE = ['func_expr_common_subexpr: CURRENT_TIME ( Iconst )' => \SqlSemantics\Platform\…
private Lowering $lowering

Test cases 11§

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

Dedicated tests 4
Other tests reaching this symbol 7

Relations§

Instantiated in 1
Method calls 1