Skip to main content

translate_type

Function translate_type 

Source
pub fn translate_type(hint: TypeHint, dst: Backend) -> &'static str
Expand description

Map a unified TypeHint to a SQL type for the destination backend. The mapping favours portability over fidelity: Decimal collapses to a (38,10) default on backends that need precision, Array stores as a JSON-ish text, and Other/Null fall back to the backend’s “wide string” type.