pub enum IRType {
Show 20 variants
Bool,
Int8,
Int16,
Int32,
Int64,
Float32,
Float64,
Decimal {
precision: u8,
scale: u8,
},
Char {
length: u32,
},
Varchar {
length: Option<u32>,
},
Text,
Binary {
length: Option<u32>,
},
Blob,
Date,
Time {
with_timezone: bool,
},
Timestamp {
with_timezone: bool,
},
Json,
Uuid,
Bit {
length: u32,
},
Other(String),
}Expand description
Database-agnostic column type.
Variants§
Bool
Int8
Int16
Int32
Int64
Float32
Float64
Decimal
Exact numeric with optional precision/scale. precision == 0 means unbounded.
Char
Varchar
None length means unbounded (equivalent to TEXT in most databases).
Text
Binary
Blob
Date
Time
Timestamp
Json
Uuid
Bit
Other(String)
Fallback for types that have no standard IR mapping. Target adapters should degrade this to TEXT.
Trait Implementations§
impl StructuralPartialEq for IRType
Auto Trait Implementations§
impl Freeze for IRType
impl RefUnwindSafe for IRType
impl Send for IRType
impl Sync for IRType
impl Unpin for IRType
impl UnsafeUnpin for IRType
impl UnwindSafe for IRType
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