pub enum Value {
Integer(i64),
Text(String),
Real(f64),
Bool(bool),
Vector(Vec<f32>),
Null,
}Expand description
Runtime value produced by query execution. Separate from the on-disk Row enum
so the executor can carry typed values (including NULL) across operators.
Variants§
Integer(i64)
Text(String)
Real(f64)
Bool(bool)
Vector(Vec<f32>)
Phase 7a: dense f32 vector as a runtime value. Carries its own
dimension implicitly via Vec::len; the column it’s being
assigned to has a declared DataType::Vector(N) that’s checked
at INSERT/UPDATE time.
Null
Implementations§
Source§impl Value
impl Value
pub fn to_display_string(&self) -> String
Sourcepub fn to_default_insert_string(&self) -> String
pub fn to_default_insert_string(&self) -> String
Renders this value in the same stringly format that
crate::sql::parser::insert::InsertQuery::new produces for INSERT
values, so a DEFAULT can be substituted into the existing
insert_row parse pipeline without a parallel typed path.
The differences from Self::to_display_string that matter:
NULLrenders as the"Null"sentinel thatinsert_rowmatches.- Text stays unquoted (the insert pipeline strips quotes upstream).
Trait Implementations§
Source§impl FromValue for Value
Identity impl so row.get::<_, Value>(0) works when you want
untyped access.
impl FromValue for Value
Identity impl so row.get::<_, Value>(0) works when you want
untyped access.
fn from_value(v: &Value) -> Result<Self>
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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