pub enum Value {
}
Expand description
Owning dynamic type value. Value’s type is typically dictated by DuckDB (not by the caller).
See ValueRef
for a non-owning dynamic type
value.
Variants
Null
The value is a NULL
value.
Boolean(bool)
The value is a boolean.
TinyInt(i8)
The value is a signed tiny integer.
SmallInt(i16)
The value is a signed small integer.
Int(i32)
The value is a signed integer.
BigInt(i64)
The value is a signed big integer.
HugeInt(i128)
The value is a signed huge integer.
UTinyInt(u8)
The value is a unsigned tiny integer.
USmallInt(u16)
The value is a unsigned small integer.
UInt(u32)
The value is a unsigned integer.
UBigInt(u64)
The value is a unsigned big integer.
Float(f32)
The value is a f32.
Double(f64)
The value is a f64.
Decimal(Decimal)
The value is a Decimal.
Timestamp(TimeUnit, i64)
The value is a timestap.
Text(String)
The value is a text string.
Blob(Vec<u8>)
The value is a blob of data
Date32(i32)
The value is a date32
Time64(TimeUnit, i64)
The value is a time64
Implementations
Trait Implementations
sourceimpl FromSql for Value
impl FromSql for Value
sourcefn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
Converts DuckDB value into Rust value.
sourceimpl ToSql for Value
impl ToSql for Value
sourcefn to_sql(&self) -> Result<ToSqlOutput<'_>>
fn to_sql(&self) -> Result<ToSqlOutput<'_>>
Converts Rust value to DuckDB value
impl StructuralPartialEq for Value
Auto Trait Implementations
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more