Skip to main content

Module json_types

Module json_types 

Source
Expand description

JSONB binary format types for JSON UDF evaluation JSONB type system for JSON UDF evaluation.

Minimal JSONB binary access types used by the JSON scalar UDFs. These mirror laminar-connectors JSONB tags but live in laminar-sql to keep the SQL layer self-contained.

Modules§

tags
JSONB binary format type tags.

Functions§

encode_jsonb
Encode a serde_json::Value into JSONB binary format.
encode_jsonb_into
Encode a JSON value into the given buffer.
jsonb_array_get
Get a JSONB array element by index.
jsonb_contains
Check whether JSONB left contains right (PostgreSQL @> semantics).
jsonb_get_field
Access a field by name in a JSONB object.
jsonb_has_key
Check if a JSONB object contains a given key.
jsonb_to_text
Convert a JSONB value slice to its text representation.
jsonb_to_value
Convert a JSONB binary value to a serde_json::Value.
jsonb_type_name
Returns the PostgreSQL-compatible type name for the outermost JSONB value.