RustTypeMapping in oxide_sql_core::schema - Rust

oxide_sql_core::schema

Trait RustTypeMapping 

Source

pub trait RustTypeMapping {
    // Required method
    fn map_type(&self, rust_type: &str) -> DataType;
}
Expand description

Maps Rust type names to SQL data types.

Each dialect implements this to provide its own mapping from the canonical Rust type string (e.g. "String", "i64") to a SQL DataType.

Required Methods§

Source

fn map_type(&self, rust_type: &str) -> DataType

Maps a Rust type name to the dialect-specific SQL data type.

Implementors§