pub enum SqlValue {
Show 28 variants
NullBool,
NullSmallInt,
NullInt,
NullBigInt,
NullFloat,
NullDouble,
NullDecimal,
NullText,
NullBytes,
NullUuid,
NullDateTime,
NullDate,
NullTime,
NullJson,
Bool(bool),
SmallInt(i16),
Int(i32),
BigInt(i64),
Float(f32),
Double(f64),
Decimal(Decimal),
Text(String),
Bytes(Vec<u8>),
Uuid(Uuid),
DateTime(DateTime<Utc>),
Date(NaiveDate),
Time(NaiveTime),
Json(Value),
}Expand description
A SQL-compatible value — used to bind field values to queries without requiring sqlx as a direct dependency of rango-orm-core.
Variants§
NullBool
NullSmallInt
NullInt
NullBigInt
NullFloat
NullDouble
NullDecimal
NullText
NullBytes
NullUuid
NullDateTime
NullDate
NullTime
NullJson
Bool(bool)
SmallInt(i16)
Int(i32)
BigInt(i64)
Float(f32)
Double(f64)
Decimal(Decimal)
Text(String)
Bytes(Vec<u8>)
Uuid(Uuid)
DateTime(DateTime<Utc>)
Date(NaiveDate)
Time(NaiveTime)
Json(Value)
Implementations§
Trait Implementations§
impl StructuralPartialEq for SqlValue
Auto Trait Implementations§
impl Forget for SqlValue
impl Freeze for SqlValue
impl RefUnwindSafe for SqlValue
impl Send for SqlValue
impl Sync for SqlValue
impl Unpin for SqlValue
impl UnsafeUnpin for SqlValue
impl UnwindSafe for SqlValue
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