Skip to main content

sql_type_mapping

Macro sql_type_mapping 

Source
macro_rules! sql_type_mapping {
    (Int2) => { ... };
    (Int4) => { ... };
    (Int8) => { ... };
    (Varchar) => { ... };
    (Text) => { ... };
    (Bool) => { ... };
    (Uuid) => { ... };
    (Timestamptz) => { ... };
    (Date) => { ... };
    (Time) => { ... };
    (Json) => { ... };
    (Jsonb) => { ... };
    (Char) => { ... };
    (Numeric) => { ... };
    (Array) => { ... };
    (Custom($type_name:expr)) => { ... };
    (Serial) => { ... };
    (BigSerial) => { ... };
    (SmallSerial) => { ... };
}
Expand description

Shared SQL type mappings for DDL