pub enum DataType {
Show 19 variants
Smallint,
Integer,
Bigint,
Real,
Double,
Decimal {
precision: Option<u16>,
scale: Option<u16>,
},
Numeric {
precision: Option<u16>,
scale: Option<u16>,
},
Char(Option<u32>),
Varchar(Option<u32>),
Text,
Blob,
Binary(Option<u32>),
Varbinary(Option<u32>),
Date,
Time,
Timestamp,
Datetime,
Boolean,
Custom(String),
}Expand description
SQL data types.
Small integer (2 bytes).
Integer (4 bytes).
Big integer (8 bytes).
Real (4-byte float).
Double precision (8-byte float).
Decimal with precision and scale.
Fields
Number of digits after decimal point.
Numeric (alias for Decimal).
Fields
Number of digits after decimal point.
Fixed-length character string.
Variable-length character string.
Text (variable length, no limit).
Binary large object.
Binary with specified length.
Variable-length binary.
Date.
Time.
Timestamp.
DateTime (SQLite-style).
Boolean.