pub enum SqlType {
Show 26 variants
TinyInt,
SmallInt,
Integer,
BigInt,
Real,
Double,
Numeric {
precision: u8,
scale: u8,
},
Decimal {
precision: u8,
scale: u8,
},
Boolean,
Char(u32),
VarChar(u32),
Text,
Binary(u32),
VarBinary(u32),
Blob,
Date,
Time,
DateTime,
Timestamp,
TimestampTz,
Uuid,
Json,
JsonB,
Array(Box<SqlType>),
Enum(Vec<&'static str>),
Custom(&'static str),
}Expand description
SQL data types supported by SQLModel.
Variants§
TinyInt
SmallInt
Integer
BigInt
Real
Double
Numeric
Decimal
Boolean
Char(u32)
VarChar(u32)
Text
Binary(u32)
VarBinary(u32)
Blob
Date
Time
DateTime
Timestamp
TimestampTz
Uuid
Json
JsonB
Array(Box<SqlType>)
Enum(Vec<&'static str>)
Custom(&'static str)
Implementations§
Source§impl SqlType
impl SqlType
Sourcepub const fn is_numeric(&self) -> bool
pub const fn is_numeric(&self) -> bool
Check if this type is numeric.
Sourcepub const fn is_temporal(&self) -> bool
pub const fn is_temporal(&self) -> bool
Check if this type is a date/time type.
Trait Implementations§
impl Eq for SqlType
impl StructuralPartialEq for SqlType
Auto Trait Implementations§
impl Freeze for SqlType
impl RefUnwindSafe for SqlType
impl Send for SqlType
impl Sync for SqlType
impl Unpin for SqlType
impl UnsafeUnpin for SqlType
impl UnwindSafe for SqlType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).