Expand description
Live source introspection (faucet discover, #211).
A Source that can enumerate the datasets living behind
its connection (tables in a database schema, collections in MongoDB,
indices in Elasticsearch, key prefixes in an object store) overrides
Source::discover to return one
DatasetDescriptor per dataset. The CLI turns that list into a
ready-to-run config: one matrix row per dataset, each row deep-merging the
descriptor’s config_patch over the
connection config.
Structs§
- Dataset
Descriptor - One dataset discovered behind a source’s connection.
Functions§
- columns_
to_ schema - Assemble an
infer_schema-shaped object schema from(column_name, type_fragment)pairs, preserving input order semantics (serde_jsonmap ordering applies). - nullable_
type - Wrap a type fragment as nullable (
{"type": ["T", "null"]}), matching the nullable shapeinfer_schemaemits. - sql_
type_ to_ json_ schema - Map a SQL catalog type name (as reported by
information_schema.columnsor an equivalent) to a JSON-Schema type fragment matching the shapeinfer_schemaproduces.