enumJsonNullHandling
enum JsonNullHandling: string
Public API: explicitly declared with
@visibility public.What a JSON constructor does with NULL values: NULL ON NULL keeps them, ABSENT ON NULL leaves them out.
The default differs between JSON_OBJECT (NULL ON NULL) and JSON_ARRAY (ABSENT ON NULL), so the clause written is kept. Source: https://www.postgresql.org/docs/17/functions-json.html#FUNCTIONS-JSON-CREATION-TABLE.
\SqlSemantics\Platform\PostgreSql\Statement\Invocation\Json\JsonNullHandling::Absent->value // => 'ABSENT'Cases§
case Keep = 'NULL'case Absent = 'ABSENT'Test cases 8§
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 7
InvocationsTest::testJsonNullsLowersTheNullClausecallsJsonArrayAggregateTest::testRenderWritesTheOrderingAndTheWindowcallsJsonArrayConstructorTest::testRejectsANullClauseWithoutValuescallsJsonArrayConstructorTest::testRenderWritesTheNullClausecallsJsonObjectAggregateTest::testRenderWritesTheClausesFilterAndWindowcallsJsonObjectConstructorTest::testRejectsANullClauseWithoutPairscallsJsonObjectConstructorTest::testRenderWritesTheClausescalls
Relations§
Constant reads 4
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Invocation\JsonRule packages/sql-semantics-postgres/src/Lowering/Invocation/JsonRule.php:64
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Invocation\JsonRule packages/sql-semantics-postgres/src/Lowering/Invocation/JsonRule.php:65
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Invocation\JsonRule packages/sql-semantics-postgres/src/Lowering/Invocation/JsonRule.php:67
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Invocation\JsonRule packages/sql-semantics-postgres/src/Lowering/Invocation/JsonRule.php:68
Type declarations 6
- type SqlSemantics\Platform\PostgreSql\Lowering\Invocation\Invocations packages/sql-semantics-postgres/src/Lowering/Invocation/Invocations.php:194
- type SqlSemantics\Platform\PostgreSql\Lowering\Invocation\JsonRule packages/sql-semantics-postgres/src/Lowering/Invocation/JsonRule.php:316
- type SqlSemantics\Platform\PostgreSql\Statement\Invocation\Json\Constructor\JsonArrayAggregate packages/sql-semantics-postgres/src/Statement/Invocation/Json/Constructor/JsonArrayAggregate.php:59
- type SqlSemantics\Platform\PostgreSql\Statement\Invocation\Json\Constructor\JsonArrayConstructor packages/sql-semantics-postgres/src/Statement/Invocation/Json/Constructor/JsonArrayConstructor.php:50
- type SqlSemantics\Platform\PostgreSql\Statement\Invocation\Json\Constructor\JsonObjectAggregate packages/sql-semantics-postgres/src/Statement/Invocation/Json/Constructor/JsonObjectAggregate.php:55
- type SqlSemantics\Platform\PostgreSql\Statement\Invocation\Json\Constructor\JsonObjectConstructor packages/sql-semantics-postgres/src/Statement/Invocation/Json/Constructor/JsonObjectConstructor.php:56