pub enum SqlValue {
Null,
TypedNull(SqlServerType),
Bool(bool),
I32(i32),
I64(i64),
F64(f64),
String(String),
Bytes(Vec<u8>),
Uuid(Uuid),
Decimal(Decimal),
Date(NaiveDate),
DateTime(NaiveDateTime),
}Expand description
Neutral SQL value representation shared across query compilation and execution layers.
Variants§
Null
TypedNull(SqlServerType)
Bool(bool)
I32(i32)
I64(i64)
F64(f64)
String(String)
Bytes(Vec<u8>)
Uuid(Uuid)
Decimal(Decimal)
Date(NaiveDate)
DateTime(NaiveDateTime)
Implementations§
Trait Implementations§
Source§impl RawParam for SqlValue
impl RawParam for SqlValue
Source§fn into_sql_value(self) -> SqlValue
fn into_sql_value(self) -> SqlValue
Converts this value into a SQL Server parameter value.
impl StructuralPartialEq for SqlValue
Auto Trait Implementations§
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