enum JsonWrapperKind: string
Public API: explicitly declared with @visibility public.

Whether JSON_QUERY wraps the items found in an array.

UNCONDITIONAL is the default after WITH and, like the optional ARRAY word, noise: WITH WRAPPER is the unconditional wrapper. Source: https://www.postgresql.org/docs/17/functions-json.html#FUNCTIONS-SQLJSON-QUERYING.

Spelling the conditional wrapperdoctest
\SqlSemantics\Platform\PostgreSql\Statement\Invocation\Json\Query\JsonWrapperKind::Conditional->value // => 'WITH CONDITIONAL'

Cases§

case Without = 'WITHOUT'
case Unconditional = 'WITH'
case Conditional = 'WITH CONDITIONAL'

Methods§

public function wraps(): bool

Tells whether items are wrapped, at least sometimes.

Returns

bool
Calls 1

Test cases 7§

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

Dedicated tests 1
Other tests reaching this symbol 6

Relations§

Constant reads 8
Type declarations 1