axion_db/types/mod.rs
1// axion-db/src/types/mod.rs
2use crate::metadata::AxionDataType;
3
4pub mod postgres;
5
6/// A trait for mapping database-specific type names to Axion's normalized data types.
7pub trait TypeMapper: Send + Sync {
8 /// Maps a SQL type name and an optional UDT name to an `AxionDataType`.
9 fn sql_to_axion(&self, sql_type: &str, udt_name: Option<&str>) -> AxionDataType;
10}