pub struct ParamStore { /* private fields */ }Expand description
Store for collecting parameters during query building.
Implementations§
Source§impl ParamStore
impl ParamStore
pub fn new() -> ParamStore
Sourcepub fn push(&mut self, param: SqlParam) -> usize
pub fn push(&mut self, param: SqlParam) -> usize
Push a parameter and return its 1-based index (for $N placeholders).
Sourcepub fn push_value(&mut self, value: impl IntoSqlParam) -> usize
pub fn push_value(&mut self, value: impl IntoSqlParam) -> usize
Push a value that implements IntoSqlParam.
Sourcepub fn into_params(self) -> Vec<SqlParam>
pub fn into_params(self) -> Vec<SqlParam>
Consume and return all parameters.
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for ParamStore
impl Clone for ParamStore
Source§fn clone(&self) -> ParamStore
fn clone(&self) -> ParamStore
Returns a duplicate 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 ParamStore
impl Debug for ParamStore
Source§impl Default for ParamStore
impl Default for ParamStore
Source§fn default() -> ParamStore
fn default() -> ParamStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ParamStore
impl RefUnwindSafe for ParamStore
impl Send for ParamStore
impl Sync for ParamStore
impl Unpin for ParamStore
impl UnwindSafe for ParamStore
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