pub enum SqlValue {
Null,
Boolean(bool),
Integer(i64),
Unsigned(u64),
Float(f64),
TimestampMillis(i64),
Text(String),
Bytes(Vec<u8>),
List(Vec<Self>),
Other(String),
}Expand description
One SQL value independent of DataFusion and Arrow versions.
Variants§
Null
SQL NULL.
Boolean(bool)
Boolean.
Integer(i64)
Signed integer normalized to 64 bits.
Unsigned(u64)
Unsigned integer normalized to 64 bits.
Float(f64)
Floating-point value normalized to 64 bits.
TimestampMillis(i64)
Milliseconds since the Unix epoch.
Text(String)
UTF-8 text.
Bytes(Vec<u8>)
Arbitrary bytes.
List(Vec<Self>)
Variable-length list. Corium cardinality-many columns use unique, deterministically ordered lists with set semantics.
Other(String)
Text rendering of an engine value not yet represented structurally.
Trait Implementations§
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§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more