pub struct Where { /* private fields */ }
Expand description
Build WHERE for SQL.
Implementations§
Source§impl Where
impl Where
pub fn new<S>(smth: S) -> Selfwhere
S: ToString,
pub fn empty() -> Self
pub fn in_brackets(&mut self) -> &mut Self
pub fn not(&mut self) -> &mut Self
pub fn and<S>(&mut self, smth: S) -> &mut Selfwhere
S: ToString,
pub fn or<S>(&mut self, smth: S) -> &mut Selfwhere
S: ToString,
pub fn eq<S>(&mut self, smth: S) -> &mut Selfwhere
S: ToString,
pub fn ne<S>(&mut self, smth: S) -> &mut Selfwhere
S: ToString,
pub fn build(&self) -> Result<String, SqlBuilderError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Where
impl RefUnwindSafe for Where
impl Send for Where
impl Sync for Where
impl Unpin for Where
impl UnwindSafe for Where
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