Skip to main content

Module types

Module types 

Source
Available on crate feature any and (crate features mssql or mysql or odbc or postgres or sqlite) only.
Expand description

Conversions between Rust and standard SQL types.

§Types

Rust typeSQL type(s)
boolBOOLEAN
i16SMALLINT
i32INT
i64BIGINT
f32FLOAT
f64DOUBLE
&str, StringVARCHAR, CHAR, TEXT

§Nullable

In addition, Option<T> is supported where T implements Type. An Option<T> represents a potentially NULL value from SQL.