enumJsonWrapperKind
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.
\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(): boolTells whether items are wrapped, at least sometimes.
Returns
boolCalls 1
- class-const JsonWrapperKind::Without() line 29
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
JsonChecksTest::testQueryReportsFormatInReturningAndQuotesWithWrappercallsJsonQueryFunctionTest::testRejectsAPathThatWouldTakeTheWrappercallsJsonQueryFunctionTest::testRejectsAWrapperOutsideJsonQuerycallsJsonQueryFunctionTest::testRenderWritesEveryClauseInOrdercallsJsonWrappingTest::testDeriveClauseDerivesNothingcallsJsonWrappingTest::testRenderWritesTheWrappercalls
Relations§
Constant reads 8
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Invocation\JsonQueryRule packages/sql-semantics-postgres/src/Lowering/Invocation/JsonQueryRule.php:44
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Invocation\JsonQueryRule packages/sql-semantics-postgres/src/Lowering/Invocation/JsonQueryRule.php:45
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Invocation\JsonQueryRule packages/sql-semantics-postgres/src/Lowering/Invocation/JsonQueryRule.php:46
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Invocation\JsonQueryRule packages/sql-semantics-postgres/src/Lowering/Invocation/JsonQueryRule.php:47
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Invocation\JsonQueryRule packages/sql-semantics-postgres/src/Lowering/Invocation/JsonQueryRule.php:48
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Invocation\JsonQueryRule packages/sql-semantics-postgres/src/Lowering/Invocation/JsonQueryRule.php:49
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Invocation\JsonQueryRule packages/sql-semantics-postgres/src/Lowering/Invocation/JsonQueryRule.php:50
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Invocation\JsonQueryRule packages/sql-semantics-postgres/src/Lowering/Invocation/JsonQueryRule.php:51