Skip to main content

Module jsonb

Module jsonb 

Source

Structsยง

CastJsonbToBool
CastJsonbToFloat32
CastJsonbToFloat64
CastJsonbToInt16
CastJsonbToInt32
CastJsonbToInt64
CastJsonbToNumeric
CastJsonbToString
CastJsonbableToJsonb
JsonbArrayLength
JsonbPretty
JsonbStripNulls
JsonbTypeof
ParseCatalogAclMode
ParseCatalogCreateSql
ParseCatalogId
ParseCatalogPrivileges
ParseKafkaSourceDetails
ParsePostgresSourceDetails
ParseSourceExportDetails
PostgresPublicationDetailsSubset ๐Ÿ”’
Minimal decoder for ProtoPostgresSourcePublicationDetails. The canonical proto lives in mz-storage-types, which depends on mz-expr, so we redeclare the two tags we read here. Upstream tag renumbers slip past silently. The mz_postgres_sources lockdown SLTs catch them.

Functionsยง

cast_jsonb_to_bool ๐Ÿ”’
cast_jsonb_to_float32 ๐Ÿ”’
cast_jsonb_to_float64 ๐Ÿ”’
cast_jsonb_to_int16 ๐Ÿ”’
cast_jsonb_to_int32 ๐Ÿ”’
cast_jsonb_to_int64 ๐Ÿ”’
cast_jsonb_to_string
cast_jsonbable_to_jsonb ๐Ÿ”’
jsonb_array_length ๐Ÿ”’
jsonb_datum_to_acl_mode ๐Ÿ”’
Decodes a JSONB object of shape {"bitflags": <u64>} into an AclMode.
jsonb_datum_to_role_id ๐Ÿ”’
Converts a JSONB Datum into a RoleId.
jsonb_datum_to_u64 ๐Ÿ”’
Converts a JSONB Datum into a u64.
jsonb_pretty ๐Ÿ”’
jsonb_strip_nulls ๐Ÿ”’
jsonb_typeof ๐Ÿ”’
parse_catalog_acl_mode ๐Ÿ”’
Converts a catalog JSON-serialized AclMode bitflags object into a PostgreSQL ACL char-code string (e.g. {"bitflags": 514} โ†’ "ar").
parse_catalog_create_sql ๐Ÿ”’
Parses a catalog create_sql string into a JSONB object.
parse_catalog_id ๐Ÿ”’
Converts a catalog JSON-serialized ID value into the appropriate string format.
parse_catalog_privileges ๐Ÿ”’
Converts a catalog JSON-serialized privilege array into an mz_aclitem[].
parse_kafka_source_details ๐Ÿ”’
Extracts kafka source configuration (topic, group id prefix, connection id) from a catalog create_sql. Returns:
parse_postgres_source_details ๐Ÿ”’
Extracts postgres source publication details (slot, timeline_id) from a catalog create_sql. Returns:
parse_source_export_details ๐Ÿ”’
Extracts source-export (source table) metadata from a catalog create_sql.