Available on crate features
sink-spanner or source-spanner only.Expand description
Spanner INFORMATION_SCHEMA type-string parsing and the mapping from
Spanner column types to JSON-Schema fragments.
Enums§
- Spanner
Type - A parsed Spanner column type (GoogleSQL dialect).
Functions§
- parse_
spanner_ type - Parse an
INFORMATION_SCHEMA.COLUMNS.SPANNER_TYPEstring (e.g.STRING(MAX),INT64,ARRAY<FLOAT64>) into aSpannerType. Unrecognized types parse asSpannerType::Other, never an error. - spanner_
type_ to_ json_ schema - Map a
SpannerTypeto the JSON-Schema fragment faucet’s discover / schema-drift machinery expects (aninfer_schema-shaped{"type": …}).nullablewidens the type with"null".