classJsonQuoting
final class JsonQuoting
implements Clause
uses Snapshot
Public API: explicitly declared with
@visibility public.KEEP QUOTES or OMIT QUOTES of JSON_QUERY or a JSON_TABLE column; the words ON SCALAR STRING are noise.
Source: https://www.postgresql.org/docs/17/functions-json.html#FUNCTIONS-SQLJSON-QUERYING.
(new \SqlSemantics\Platform\PostgreSql\Statement\Invocation\Json\Query\JsonQuoting(false))->keep // => falseProperties§
public bool $keepMethods§
public function __construct(public bool $keep)Parameters
$keep | bool | Whether KEEP QUOTES is written, rather than OMIT QUOTES |
public function deriveClause(Derivation $derivation, Environment $environment): voidDerives nothing: the clause holds no expression.
Parameters
$derivation | Derivation | |
$environment | Environment |
Test cases 1
public function render(Output $out): voidWrites the quotes clause.
Parameters
$out | Output |
Test cases 1
Calls 1
- method-call Output::keyword() line 45
Test cases 4§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
Other tests reaching this symbol 2
Relations§
Instantiated in 1
Type declarations 3
- type SqlSemantics\Platform\PostgreSql\Lowering\Invocation\Invocations packages/sql-semantics-postgres/src/Lowering/Invocation/Invocations.php:224
- type SqlSemantics\Platform\PostgreSql\Lowering\Invocation\JsonQueryRule packages/sql-semantics-postgres/src/Lowering/Invocation/JsonQueryRule.php:219
- type SqlSemantics\Platform\PostgreSql\Statement\Invocation\Json\Query\JsonQueryFunction packages/sql-semantics-postgres/src/Statement/Invocation/Json/Query/JsonQueryFunction.php:69