pub trait TypeMapper: Send + Sync {
// Required method
fn sql_to_axion(
&self,
sql_type: &str,
udt_name: Option<&str>,
) -> AxionDataType;
}Expand description
A trait for mapping database-specific type names to Axion’s normalized data types.
Required Methods§
Sourcefn sql_to_axion(&self, sql_type: &str, udt_name: Option<&str>) -> AxionDataType
fn sql_to_axion(&self, sql_type: &str, udt_name: Option<&str>) -> AxionDataType
Maps a SQL type name and an optional UDT name to an AxionDataType.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".