TypeMapper

Trait TypeMapper 

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

Source

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.

Implementors§