Enum datafusion::common::ParamValues
source · pub enum ParamValues {
List(Vec<ScalarValue>),
Map(HashMap<String, ScalarValue>),
}
Expand description
The parameter value corresponding to the placeholder
Variants§
List(Vec<ScalarValue>)
For positional query parameters, like SELECT * FROM test WHERE a > $1 AND b = $2
Map(HashMap<String, ScalarValue>)
For named query parameters, like SELECT * FROM test WHERE a > $foo AND b = $goo
Implementations§
source§impl ParamValues
impl ParamValues
sourcepub fn verify(&self, expect: &[DataType]) -> Result<(), DataFusionError>
pub fn verify(&self, expect: &[DataType]) -> Result<(), DataFusionError>
Verify parameter list length and type
pub fn get_placeholders_with_values( &self, id: &str, ) -> Result<ScalarValue, DataFusionError>
Trait Implementations§
source§impl Clone for ParamValues
impl Clone for ParamValues
source§fn clone(&self) -> ParamValues
fn clone(&self) -> ParamValues
Returns a copy of the value. Read more
1.0.0 · 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 ParamValues
impl Debug for ParamValues
source§impl<K> From<HashMap<K, ScalarValue>> for ParamValues
impl<K> From<HashMap<K, ScalarValue>> for ParamValues
source§fn from(value: HashMap<K, ScalarValue>) -> ParamValues
fn from(value: HashMap<K, ScalarValue>) -> ParamValues
Converts to this type from the input type.
source§impl<K> From<Vec<(K, ScalarValue)>> for ParamValues
impl<K> From<Vec<(K, ScalarValue)>> for ParamValues
source§fn from(value: Vec<(K, ScalarValue)>) -> ParamValues
fn from(value: Vec<(K, ScalarValue)>) -> ParamValues
Converts to this type from the input type.
source§impl From<Vec<ScalarValue>> for ParamValues
impl From<Vec<ScalarValue>> for ParamValues
source§fn from(value: Vec<ScalarValue>) -> ParamValues
fn from(value: Vec<ScalarValue>) -> ParamValues
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParamValues
impl !RefUnwindSafe for ParamValues
impl Send for ParamValues
impl Sync for ParamValues
impl Unpin for ParamValues
impl !UnwindSafe for ParamValues
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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