classInvocations
final class Invocations
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§
Lowers a call: func_expr, func_expr_windowless or func_application.
Parameters
$call | Node |
Returns
Throws
AnalysisException When WITHIN GROUP is combined with an ordering, DISTINCT or VARIADIC, which the server rejects while parsingImplementationGap When the production has no ruleCalls 2
- method-call CallRule::call() line 61
- new CallRule line 61
Lowers call arguments: func_arg_list or func_arg_list_opt; no argument is an empty list.
Parameters
$arguments | Node |
Returns
list<Argument>Throws
ImplementationGap When the production has no ruleCalls 2
- method-call CallRule::arguments() line 73
- new CallRule line 73
Lowers func_expr_common_subexpr: the SQL-syntax functions.
Parameters
$subexpression | Node |
Returns
Throws
ImplementationGap When the production has no ruleCalls 2
- method-call SyntaxRule::subexpression() line 83
- new SyntaxRule line 83
public function window(Node $specification): WindowSpecificationLowers window_specification.
Parameters
$specification | Node |
Returns
Throws
AnalysisException When the frame is one the server rejects while parsingCalls 2
- method-call WindowRule::specification() line 93
- new WindowRule line 93
public function over(Node $clause): WindowSpecification|Name|nullLowers over_clause: a window specification, a window name, or nothing.
Parameters
$clause | Node |
Returns
WindowSpecification|Name|nullThrows
ImplementationGap When the production has no ruleCalls 2
- method-call WindowRule::over() line 103
- new WindowRule line 103
Lowers filter_clause; no clause is null.
Parameters
$clause | Node |
Returns
Throws
ImplementationGap When the production has no ruleCalls 2
- method-call CallRule::filter() line 113
- new CallRule line 113
public function xmlPassing(Node $argument): XmlPassingLowers xmlexists_argument: the PASSING clause of XMLEXISTS and XMLTABLE.
Parameters
$argument | Node |
Returns
Throws
ImplementationGap When the production has no ruleCalls 2
- method-call XmlRule::passing() line 123
- new XmlRule line 123
public function xmlAttributes(Node $list): list<XmlAttribute>Lowers xml_attribute_list.
Parameters
$list | Node |
Returns
list<XmlAttribute>Calls 2
- method-call XmlRule::attributes() line 133
- new XmlRule line 133
public function jsonValue(Node $value): JsonValueExpressionLowers json_value_expr: an expression with an optional FORMAT clause.
Parameters
$value | Node |
Returns
Throws
ImplementationGap When the production has no ruleCalls 2
- method-call JsonRule::value() line 143
- new JsonRule line 143
public function jsonPassing(Node $passing): list<JsonArgument>Lowers json_passing_clause_opt; no clause is an empty list.
Parameters
$passing | Node |
Returns
list<JsonArgument>Throws
ImplementationGap When the production has no ruleCalls 2
- method-call JsonQueryRule::passing() line 155
- new JsonQueryRule line 155
public function jsonFormat(Node $format): ?JsonFormatLowers json_format_clause or json_format_clause_opt; no clause is null.
Parameters
$format | Node |
Returns
Throws
AnalysisException When the encoding is not UTF8, UTF16 or UTF32ImplementationGap When the production has no ruleCalls 2
- method-call JsonRule::format() line 166
- new JsonRule line 166
public function jsonReturning(Node $returning): ?JsonReturningLowers json_returning_clause_opt or json_output_clause_opt; no clause is null.
Parameters
$returning | Node |
Returns
Throws
ImplementationGap When the production has no ruleCalls 2
- method-call JsonRule::returning() line 176
- new JsonRule line 176
Lowers json_name_and_value.
Parameters
$pair | Node |
Returns
Throws
ImplementationGap When the production has no ruleCalls 2
- method-call JsonRule::keyValue() line 186
- new JsonRule line 186
public function jsonNulls(Node $clause): ?JsonNullHandlingLowers json_object_constructor_null_clause_opt or json_array_constructor_null_clause_opt; no clause is null.
Parameters
$clause | Node |
Returns
Throws
ImplementationGap When the production has no ruleCalls 2
- method-call JsonRule::nulls() line 196
- new JsonRule line 196
public function jsonBehavior(Node $behavior): ?JsonBehaviorClauseLowers json_behavior_clause_opt or json_on_error_clause_opt; no clause is null.
Parameters
$behavior | Node |
Returns
Throws
ImplementationGap When the production has no ruleCalls 2
- method-call JsonQueryRule::behaviors() line 206
- new JsonQueryRule line 206
public function jsonWrapper(Node $wrapper): ?JsonWrappingLowers json_wrapper_behavior; no clause is null.
Parameters
$wrapper | Node |
Returns
Throws
ImplementationGap When the production has no ruleCalls 2
- method-call JsonQueryRule::wrapper() line 216
- new JsonQueryRule line 216
public function jsonQuotes(Node $quotes): ?JsonQuotingLowers json_quotes_clause_opt; no clause is null.
Parameters
$quotes | Node |
Returns
Throws
ImplementationGap When the production has no ruleCalls 2
- method-call JsonQueryRule::quotes() line 226
- new JsonQueryRule line 226
public function jsonKeyUniqueness(Node $constraint): ?JsonUniqueKeysLowers json_key_uniqueness_constraint_opt; no clause is null.
Parameters
$constraint | Node |
Returns
Throws
ImplementationGap When the production has no ruleCalls 2
- method-call JsonRule::uniqueness() line 236
- new JsonRule line 236
Private surface 1§
Implementation details, listed for orientation only.
private Lowering $loweringTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
InvocationsTestcalls