Module jsonb_set

Source

Staticsยง

_LINKME_ELEMENT_jsonb_set_jsonb_varchararray_jsonb_boolean_jsonb ๐Ÿ”’
_LINKME_ELEMENT_jsonb_set_jsonb_varchararray_jsonb_jsonb ๐Ÿ”’

Functionsยง

jsonb_set3 ๐Ÿ”’
jsonb_set4 ๐Ÿ”’
Returns target with the item designated by path replaced by new_value, or with new_value added if create_if_missing is true (which is the default) and the item designated by path does not exist. All earlier steps in the path must exist, or the target is returned unchanged. As with the path oriented operators, negative integers that appear in the path count from the end of JSON arrays.
jsonb_set_jsonb_varchararray_jsonb_boolean_jsonb ๐Ÿ”’
jsonb_set_jsonb_varchararray_jsonb_jsonb ๐Ÿ”’
jsonbb_set_path ๐Ÿ”’
Recursively set path[i..] in target to new_value and write the result to builder.
normalize_array_index ๐Ÿ”’
Normalizes an array index to 0..len. Negative indices count from the end. i.e. -len..0 => 0..len. Returns None if index is out of bounds.