final class JsonWrapping
    implements Clause
    uses Snapshot
Public API: explicitly declared with @visibility public.

The wrapper clause of JSON_QUERY or of a JSON_TABLE column.

Source: https://www.postgresql.org/docs/17/functions-json.html#FUNCTIONS-SQLJSON-QUERYING.

Reading a wrapper clausedoctest
(new \SqlSemantics\Platform\PostgreSql\Statement\Invocation\Json\Query\JsonWrapping(\SqlSemantics\Platform\PostgreSql\Statement\Invocation\Json\Query\JsonWrapperKind::Unconditional))->kind->wraps() // => true

Properties§

Methods§

public function __construct(public JsonWrapperKind $kind)

Parameters

$kindJsonWrapperKindThe wrapping written
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 wrapper clause.

Parameters

$outOutput
Test cases 1
Calls 2

Test cases 6§

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 4

Relations§

Instantiated in 1
Type declarations 3