Params

Trait Params 

Source
pub trait Params {
    // Required method
    fn push(&mut self, param: &Value, type_hint: Option<&Type>) -> Placeholder;
}
Expand description

Collects query parameter values during SQL serialization.

Implement this trait to control how bound parameters are stored. The serializer calls push each time it encounters a value that should be sent as a bind parameter rather than inlined into the SQL string.

Required Methods§

Source

fn push(&mut self, param: &Value, type_hint: Option<&Type>) -> Placeholder

Appends a value (with an optional type hint) and returns its Placeholder.

Implementations on Foreign Types§

Source§

impl Params for Vec<Value>

Source§

fn push(&mut self, value: &Value, _type_hint: Option<&Type>) -> Placeholder

Source§

impl Params for Vec<TypedValue>

Source§

fn push(&mut self, value: &Value, type_hint: Option<&Type>) -> Placeholder

Implementors§