pub enum DataType {
}Expand description
SQL data types supported by the query engine.
Variants§
TinyInt
8-bit signed integer (-128 to 127).
SmallInt
16-bit signed integer (-32,768 to 32,767).
Integer
32-bit signed integer (-2^31 to 2^31-1).
BigInt
64-bit signed integer (-2^63 to 2^63-1).
Real
64-bit floating point number (IEEE 754 double precision).
Decimal
Fixed-precision decimal number.
Stored internally as i128 in smallest units. Example: DECIMAL(10,2) stores 123.45 as 12345.
Fields
Text
Variable-length UTF-8 text.
Bytes
Variable-length binary data.
Boolean
Boolean value (true/false).
Date
Date (days since Unix epoch, i32).
Time
Time of day (nanoseconds within day, i64).
Timestamp
Timestamp (nanoseconds since Unix epoch, u64).
Uuid
UUID (RFC 4122, 128-bit).
Json
JSON document (validated, stored as text).
Trait Implementations§
impl Copy for DataType
impl Eq for DataType
impl StructuralPartialEq for DataType
Auto Trait Implementations§
impl Freeze for DataType
impl RefUnwindSafe for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnwindSafe for DataType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more