Skip to main content

Module json_udf

Module json_udf 

Source
Expand description

PostgreSQL-compatible JSON scalar UDFs PostgreSQL-compatible JSON scalar UDFs (F-SCHEMA-011).

Implements:

  • Extraction: jsonb_get, jsonb_get_idx, jsonb_get_text, jsonb_get_text_idx, jsonb_get_path, jsonb_get_path_text
  • Existence: jsonb_exists, jsonb_exists_any, jsonb_exists_all
  • Containment: jsonb_contains, jsonb_contained_by
  • Interrogation: json_typeof
  • Construction: json_build_object, json_build_array, to_jsonb

Structs§

JsonBuildArray
json_build_array(v1, v2, ...) -> jsonb
JsonBuildObject
json_build_object(key1, value1, key2, value2, ...) -> jsonb
JsonTypeof
Returns the outermost JSON type name by reading its tag byte.
JsonbContainedBy
jsonb_contained_by(jsonb, jsonb) -> bool
JsonbContains
jsonb_contains(jsonb, jsonb) -> bool
JsonbExists
Tests whether a JSONB object contains a key.
JsonbExistsAll
jsonb_exists_all(jsonb, text[]) -> bool
JsonbExistsAny
jsonb_exists_any(jsonb, text[]) -> bool
JsonbGet
Extracts a JSON object field by key, returning JSONB.
JsonbGetIdx
jsonb_get_idx(jsonb, int32) -> jsonb
JsonbGetPath
jsonb_get_path(jsonb, text[]) -> jsonb
JsonbGetPathText
jsonb_get_path_text(jsonb, text[]) -> text
JsonbGetText
jsonb_get_text(jsonb, text) -> text
JsonbGetTextIdx
jsonb_get_text_idx(jsonb, int32) -> text
ToJsonb
to_jsonb(value) -> jsonb

Functions§

expand_args
Expand all args to arrays of the same length.