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

Lowers the SQL/JSON query functions of PostgreSQL 17 and their clauses.

Rule: PG-JSON-QUERY-LOWERING-001. Scope: the JSON_QUERY, JSON_EXISTS and JSON_VALUE productions of func_expr_common_subexpr, json_passing_clause_opt, json_arguments, json_argument, json_wrapper_behavior, json_behavior, json_behavior_type, json_behavior_clause_opt, json_on_error_clause_opt, json_quotes_clause_opt. Constructors: the classes of Statement/Invocation/Json/Query. UNCONDITIONAL and ARRAY in the wrapper clause and ON SCALAR STRING in the quotes clause are noise (see InvocationNoise). Termination: lists are flattened iteratively. Source: https://www.postgresql.org/docs/17/functions-json.html#FUNCTIONS-SQLJSON-QUERYING. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe hub

Private surface 4§

Implementation details, listed for orientation only.

private const WRAPPERS = ['json_wrapper_behavior:' => null, 'json_wrapper_behavior: WITHOUT WRAPPER' => …
private const QUOTES = ['json_quotes_clause_opt:' => null, 'json_quotes_clause_opt: KEEP QUOTES ON SCA…
private const BEHAVIORS = ['json_behavior_type: ERROR_P' => \SqlSemantics\Platform\PostgreSql\Statement\I…
private Lowering $lowering

Test cases 5§

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

Dedicated tests 5

Relations§

Instantiated in 5
Method calls 5