Skip to main content

json_schema_base_type

Function json_schema_base_type 

Source
pub fn json_schema_base_type(fragment: &Value) -> Option<SqlBaseType>
Expand description

Map a top-level JSON-Schema type fragment to a base SQL type, or None for a pure-null fragment (caller falls back to TEXT/NVARCHAR for an added column whose only observed value was null).