Expand description
Decoders for catalog create_sql strings.
Each function parses a persisted create_sql and returns a JSON value with
the fields a builtin catalog view projects. Errors are human-readable
strings.
Structsยง
- Postgres
Publication ๐Details Subset - Minimal decoder for
ProtoPostgresSourcePublicationDetails. The canonical proto lives inmz-storage-types, which depends on this crate viamz-expr, so we redeclare the two tags we read here. Upstream tag renumbers slip past silently. Themz_postgres_sourceslockdown SLTs catch them.
Functionsยง
- cluster_
id ๐ - connection_
details - Extracts connection-detail metadata from a catalog
create_sql. - format_
name ๐ - item_
details - Parses a catalog
create_sqlstring into a JSON object. - item_id ๐
- item_
references - Extracts the catalog item references from a catalog
create_sqlstring as a JSONB object. - kafka_
source_ details - Extracts kafka source configuration (topic, group id prefix, connection
id) from a catalog
create_sql. Returns: - option_
string ๐ - Extracts the string form of a
WithOptionValue, matching how the planner coerces option values. The blanketTryFromValue<WithOptionValue<T>>impl insrc/sql/src/plan/with_options.rsaccepts a quoted string, a bare identifier, and a 1-part unresolved item name, all yielding a string. Any other variant yields None. - parse_
single_ ๐statement - Parses
sql, which must contain exactly one statement. - postgres_
source_ details - Extracts postgres source publication details (slot, timeline_id) from a
catalog
create_sql. Returns: - source_
export_ details - Extracts source-export (source table) metadata from a catalog
create_sql.