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§
Sourcefn push(&mut self, param: &Value, type_hint: Option<&Type>) -> Placeholder
fn push(&mut self, param: &Value, type_hint: Option<&Type>) -> Placeholder
Appends a value (with an optional type hint) and returns its Placeholder.