pub enum SqlValue {
Null,
Integer(i32),
BigInt(i64),
Float(f32),
Double(f64),
Text(String),
Blob(Vec<u8>),
Boolean(bool),
Timestamp(i64),
Vector(Vec<f32>),
}Expand description
Runtime value representation for the SQL storage layer.
Variants§
Null
Integer(i32)
BigInt(i64)
Float(f32)
Double(f64)
Text(String)
Blob(Vec<u8>)
Boolean(bool)
Timestamp(i64)
Vector(Vec<f32>)
Implementations§
Source§impl SqlValue
impl SqlValue
Sourcepub fn resolved_type(&self) -> ResolvedType
pub fn resolved_type(&self) -> ResolvedType
Returns the corresponding ResolvedType for this value.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SqlValue
impl<'de> Deserialize<'de> for SqlValue
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
Source§impl PartialOrd for SqlValue
impl PartialOrd for SqlValue
Source§impl TryFrom<&SqlValue> for ResolvedType
impl TryFrom<&SqlValue> for ResolvedType
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 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