pub enum Value {
Null,
Bool(bool),
Int(i64),
Float(f64),
Text(String),
Bytes(Vec<u8>),
Vector(Vec<f32>),
Json(JsonValue),
Timestamp(i64),
Uuid([u8; 16]),
}Expand description
One parameter value for a query_with(sql, params) call.
Variants mirror the engine’s binder slots; see
crates/reddb-server/src/storage/query/user_params.rs for the
authoritative per-slot type rules.
Variants§
Null
Bool(bool)
Int(i64)
Float(f64)
Text(String)
Bytes(Vec<u8>)
Vector(Vec<f32>)
f32 vector for similarity / vector slots.
Json(JsonValue)
Structured JSON (object / array / scalar).
Timestamp(i64)
Seconds since Unix epoch.
Uuid([u8; 16])
Raw 16-byte UUID.
Implementations§
Source§impl Value
impl Value
Sourcepub fn Int64(value: i64) -> Self
pub fn Int64(value: i64) -> Self
Compatibility constructor for issue #386 examples and callers coming
from drivers that spell the integer wire value as Int64.
Sourcepub fn into_json_param(self) -> Value
pub fn into_json_param(self) -> Value
Canonical JSON envelope used by HTTP POST /query’s params
field and any future JSON-RPC transport. Matches the shape
crates/reddb-server/src/server/handlers_query.rs accepts.
Sourcepub fn into_schema_value(self) -> Value
pub fn into_schema_value(self) -> Value
In-process conversion to the engine’s SchemaValue. Skips JSON
round-trip on the embedded path. Available only when the crate
is built with embedded.
Trait Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request