pub enum SqlType {
Show 16 variants
SmallInt,
Integer,
BigInt,
Real,
Double,
Decimal,
Bool,
Text,
Binary,
Date,
Time,
Timestamp,
Duration,
Uuid,
Json,
IpAddr,
}Expand description
Portable column type family (serde mirror of siderite_orm::SqlType).
Variants§
SmallInt
16-bit integer.
Integer
32-bit integer.
BigInt
64-bit integer.
Real
32-bit float.
Double
64-bit float.
Decimal
Exact decimal.
Bool
Boolean.
Text
Text / VARCHAR(n).
Binary
Binary data.
Date
Calendar date.
Time
Time of day.
Timestamp
UTC timestamp.
Duration
Duration stored as 64-bit microseconds.
Uuid
UUID.
Json
JSON document.
IpAddr
IP address stored as text.
Trait Implementations§
impl Copy for SqlType
Source§impl<'de> Deserialize<'de> for SqlType
impl<'de> Deserialize<'de> for SqlType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SqlType
Source§impl From<SqlType> for SqlType
impl From<SqlType> for SqlType
Source§fn from(value: OrmSqlType) -> Self
fn from(value: OrmSqlType) -> Self
Converts to this type from the input type.
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.