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

What an SQL/JSON function returns when the path finds nothing or an error occurs.

Mirrors PostgreSQL's JsonBehaviorType; the bare EMPTY, which the server treats as EMPTY ARRAY, is a distinct spelling and kept. Source: https://www.postgresql.org/docs/17/functions-json.html#FUNCTIONS-SQLJSON-QUERYING.

Spelling the behavior returning an empty objectdoctest
\SqlSemantics\Platform\PostgreSql\Statement\Invocation\Json\Query\JsonBehaviorKind::EmptyObject->value // => 'EMPTY OBJECT'

Cases§

case Error = 'ERROR'
case Null = 'NULL'
case True = 'TRUE'
case False = 'FALSE'
case Unknown = 'UNKNOWN'
case EmptyArray = 'EMPTY ARRAY'
case EmptyObject = 'EMPTY OBJECT'
case Empty = 'EMPTY'
case Default = 'DEFAULT'

Test cases 10§

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 9

Relations§

Constant reads 10
Type declarations 2