pub enum QueryParam {
Null,
Bool(bool),
Int(i64),
Float(f64),
Text(String),
File(FileRef),
Json(Value),
}Expand description
A single bound SQL parameter.
Prefer this over raw serde_json::Value so common KalamDB types — including
FileRef — serialize correctly without manual JSON construction.
Variants§
Null
Bool(bool)
Int(i64)
Float(f64)
Text(String)
File(FileRef)
Existing FILE column reference (serialized as JSON for SQL binding).
Json(Value)
Advanced JSON values when no typed variant fits.
Implementations§
Trait Implementations§
Source§impl Clone for QueryParam
impl Clone for QueryParam
Source§fn clone(&self) -> QueryParam
fn clone(&self) -> QueryParam
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QueryParam
impl Debug for QueryParam
Source§impl From<&FileRef> for QueryParam
impl From<&FileRef> for QueryParam
Source§fn from(value: &FileRef) -> QueryParam
fn from(value: &FileRef) -> QueryParam
Converts to this type from the input type.
Source§impl From<&str> for QueryParam
impl From<&str> for QueryParam
Source§fn from(value: &str) -> QueryParam
fn from(value: &str) -> QueryParam
Converts to this type from the input type.
Source§impl From<()> for QueryParam
impl From<()> for QueryParam
Source§fn from(_: ()) -> QueryParam
fn from(_: ()) -> QueryParam
Converts to this type from the input type.
Source§impl From<FileRef> for QueryParam
impl From<FileRef> for QueryParam
Source§fn from(value: FileRef) -> QueryParam
fn from(value: FileRef) -> QueryParam
Converts to this type from the input type.
Source§impl From<QueryParam> for Value
impl From<QueryParam> for Value
Source§fn from(value: QueryParam) -> Value
fn from(value: QueryParam) -> Value
Converts to this type from the input type.
Source§impl From<String> for QueryParam
impl From<String> for QueryParam
Source§fn from(value: String) -> QueryParam
fn from(value: String) -> QueryParam
Converts to this type from the input type.
Source§impl From<Value> for QueryParam
impl From<Value> for QueryParam
Source§fn from(value: Value) -> QueryParam
fn from(value: Value) -> QueryParam
Converts to this type from the input type.
Source§impl From<bool> for QueryParam
impl From<bool> for QueryParam
Source§fn from(value: bool) -> QueryParam
fn from(value: bool) -> QueryParam
Converts to this type from the input type.
Source§impl From<f32> for QueryParam
impl From<f32> for QueryParam
Source§fn from(value: f32) -> QueryParam
fn from(value: f32) -> QueryParam
Converts to this type from the input type.
Source§impl From<f64> for QueryParam
impl From<f64> for QueryParam
Source§fn from(value: f64) -> QueryParam
fn from(value: f64) -> QueryParam
Converts to this type from the input type.
Source§impl From<i16> for QueryParam
impl From<i16> for QueryParam
Source§fn from(value: i16) -> QueryParam
fn from(value: i16) -> QueryParam
Converts to this type from the input type.
Source§impl From<i32> for QueryParam
impl From<i32> for QueryParam
Source§fn from(value: i32) -> QueryParam
fn from(value: i32) -> QueryParam
Converts to this type from the input type.
Source§impl From<i64> for QueryParam
impl From<i64> for QueryParam
Source§fn from(value: i64) -> QueryParam
fn from(value: i64) -> QueryParam
Converts to this type from the input type.
Source§impl From<u64> for QueryParam
impl From<u64> for QueryParam
Source§fn from(value: u64) -> QueryParam
fn from(value: u64) -> QueryParam
Converts to this type from the input type.
Source§impl PartialEq for QueryParam
impl PartialEq for QueryParam
Source§fn eq(&self, other: &QueryParam) -> bool
fn eq(&self, other: &QueryParam) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QueryParam
Auto Trait Implementations§
impl Freeze for QueryParam
impl RefUnwindSafe for QueryParam
impl Send for QueryParam
impl Sync for QueryParam
impl Unpin for QueryParam
impl UnsafeUnpin for QueryParam
impl UnwindSafe for QueryParam
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