pub struct SqlFilter { /* private fields */ }Expand description
WHERE-fragment accumulator that keeps predicates and bind values in the same order they are introduced.
Implementations§
Source§impl SqlFilter
impl SqlFilter
pub fn push_predicate(&mut self, sql: impl Into<String>)
pub fn push_param(&mut self, value: Value)
pub fn push_fragment(&mut self, fragment: SqlFragment)
pub fn where_clause(&self) -> String
pub fn into_params(self) -> Vec<Value>
Trait Implementations§
impl StructuralPartialEq for SqlFilter
Auto Trait Implementations§
impl Freeze for SqlFilter
impl RefUnwindSafe for SqlFilter
impl Send for SqlFilter
impl Sync for SqlFilter
impl Unpin for SqlFilter
impl UnsafeUnpin for SqlFilter
impl UnwindSafe for SqlFilter
Blanket Implementations§
impl<T> Allocation for T
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