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

The entry point of the invocation family: function calls and function-like expressions.

Rule: PG-INVOCATION-001. Scope: every nonterminal of the family (see .agent/plan-pg.md, family Invocation): func_expr, func_expr_windowless, func_application and their arguments, aggregate ordering, FILTER, WITHIN GROUP, OVER and window specifications, the SQL-syntax functions of func_expr_common_subexpr, the SQL/XML functions and the SQL/JSON constructors, aggregates and query functions with their clauses. Each method delegates to the rule of its nonterminal group. Termination: lists are flattened iteratively; operands recurse on the tree depth only. Source: https://www.postgresql.org/docs/17/sql-expressions.html#SQL-EXPRESSIONS-FUNCTION-CALLS. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

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

Lowers a call: func_expr, func_expr_windowless or func_application.

Parameters

$callNode

Returns

Throws

AnalysisException When WITHIN GROUP is combined with an ordering, DISTINCT or VARIADIC, which the server rejects while parsing
ImplementationGap When the production has no rule
Calls 2
public function arguments(Node $arguments): list<Argument>

Lowers call arguments: func_arg_list or func_arg_list_opt; no argument is an empty list.

Parameters

$argumentsNode

Returns

list<Argument>

Throws

ImplementationGap When the production has no rule
Calls 2
public function subexpression(Node $subexpression): Scalar

Lowers func_expr_common_subexpr: the SQL-syntax functions.

Parameters

$subexpressionNode

Returns

Throws

ImplementationGap When the production has no rule
Calls 2
public function window(Node $specification): WindowSpecification

Lowers window_specification.

Parameters

$specificationNode

Throws

AnalysisException When the frame is one the server rejects while parsing
Calls 2
public function over(Node $clause): WindowSpecification|Name|null

Lowers over_clause: a window specification, a window name, or nothing.

Parameters

$clauseNode

Throws

ImplementationGap When the production has no rule
Calls 2
public function filter(Node $clause): ?Scalar

Lowers filter_clause; no clause is null.

Parameters

$clauseNode

Returns

Throws

ImplementationGap When the production has no rule
Calls 2
public function xmlPassing(Node $argument): XmlPassing

Lowers xmlexists_argument: the PASSING clause of XMLEXISTS and XMLTABLE.

Parameters

$argumentNode

Returns

Throws

ImplementationGap When the production has no rule
Calls 2
public function xmlAttributes(Node $list): list<XmlAttribute>

Lowers xml_attribute_list.

Parameters

$listNode

Returns

Calls 2
public function jsonValue(Node $value): JsonValueExpression

Lowers json_value_expr: an expression with an optional FORMAT clause.

Parameters

$valueNode

Throws

ImplementationGap When the production has no rule
Calls 2
public function jsonPassing(Node $passing): list<JsonArgument>

Lowers json_passing_clause_opt; no clause is an empty list.

Parameters

$passingNode

Returns

Throws

ImplementationGap When the production has no rule
Calls 2
public function jsonFormat(Node $format): ?JsonFormat

Lowers json_format_clause or json_format_clause_opt; no clause is null.

Parameters

$formatNode

Returns

Throws

AnalysisException When the encoding is not UTF8, UTF16 or UTF32
ImplementationGap When the production has no rule
Calls 2
public function jsonReturning(Node $returning): ?JsonReturning

Lowers json_returning_clause_opt or json_output_clause_opt; no clause is null.

Parameters

$returningNode

Throws

ImplementationGap When the production has no rule
Calls 2
public function jsonKeyValue(Node $pair): JsonPair

Lowers json_name_and_value.

Parameters

$pairNode

Returns

Throws

ImplementationGap When the production has no rule
Calls 2
public function jsonNulls(Node $clause): ?JsonNullHandling

Lowers json_object_constructor_null_clause_opt or json_array_constructor_null_clause_opt; no clause is null.

Parameters

$clauseNode

Throws

ImplementationGap When the production has no rule
Calls 2
public function jsonBehavior(Node $behavior): ?JsonBehaviorClause

Lowers json_behavior_clause_opt or json_on_error_clause_opt; no clause is null.

Parameters

$behaviorNode

Throws

ImplementationGap When the production has no rule
Calls 2
public function jsonWrapper(Node $wrapper): ?JsonWrapping

Lowers json_wrapper_behavior; no clause is null.

Parameters

$wrapperNode

Returns

Throws

ImplementationGap When the production has no rule
Calls 2
public function jsonQuotes(Node $quotes): ?JsonQuoting

Lowers json_quotes_clause_opt; no clause is null.

Parameters

$quotesNode

Returns

Throws

ImplementationGap When the production has no rule
Calls 2
public function jsonKeyUniqueness(Node $constraint): ?JsonUniqueKeys

Lowers json_key_uniqueness_constraint_opt; no clause is null.

Parameters

$constraintNode

Throws

ImplementationGap When the production has no rule
Calls 2

Private surface 1§

Implementation details, listed for orientation only.

private Lowering $lowering

Test cases 1§

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

Dedicated tests 1

Relations§

Instantiated in 1
Type declarations 1