Skip to main content

Module types

Module types 

Source
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§

SpannerType
A parsed Spanner column type (GoogleSQL dialect).

Functions§

parse_spanner_type
Parse an INFORMATION_SCHEMA.COLUMNS.SPANNER_TYPE string (e.g. STRING(MAX), INT64, ARRAY<FLOAT64>) into a SpannerType. Unrecognized types parse as SpannerType::Other, never an error.
spanner_type_to_json_schema
Map a SpannerType to the JSON-Schema fragment faucet’s discover / schema-drift machinery expects (an infer_schema-shaped {"type": …}). nullable widens the type with "null".