classJsonWrapping
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.
(new \SqlSemantics\Platform\PostgreSql\Statement\Invocation\Json\Query\JsonWrapping(\SqlSemantics\Platform\PostgreSql\Statement\Invocation\Json\Query\JsonWrapperKind::Unconditional))->kind->wraps() // => trueProperties§
public JsonWrapperKind $kindMethods§
public function __construct(public JsonWrapperKind $kind)Parameters
$kind | JsonWrapperKind | The wrapping written |
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 wrapper clause.
Parameters
$out | Output |
Test cases 1
Calls 2
- method-call Output::keyword() line 45
- function-call
explodeline 45
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
- type SqlSemantics\Platform\PostgreSql\Lowering\Invocation\Invocations packages/sql-semantics-postgres/src/Lowering/Invocation/Invocations.php:214
- type SqlSemantics\Platform\PostgreSql\Lowering\Invocation\JsonQueryRule packages/sql-semantics-postgres/src/Lowering/Invocation/JsonQueryRule.php:203
- type SqlSemantics\Platform\PostgreSql\Statement\Invocation\Json\Query\JsonQueryFunction packages/sql-semantics-postgres/src/Statement/Invocation/Json/Query/JsonQueryFunction.php:68