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.

Reading a quotes clausedoctest
(new \SqlSemantics\Platform\PostgreSql\Statement\Invocation\Json\Query\JsonQuoting(false))->keep // => false

Properties§

public bool $keep

Methods§

public function __construct(public bool $keep)

Parameters

$keepboolWhether KEEP QUOTES is written, rather than OMIT QUOTES
public function deriveClause(Derivation $derivation, Environment $environment): void

Derives nothing: the clause holds no expression.

Parameters

$derivationDerivation
$environmentEnvironment
Test cases 1
public function render(Output $out): void

Writes the quotes clause.

Parameters

$outOutput
Test cases 1
Calls 1

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