pub struct Sql(/* private fields */);
Implementations§
Source§impl Sql
impl Sql
pub fn new() -> Self
pub fn push(&mut self, expr: SqlExpr)
pub fn arg(&mut self, arg: impl ToSql + Send + Sync + 'static)
pub fn sql(&mut self, s: impl AsRef<str>)
pub fn collapse(self) -> (String, Vec<Box<dyn ToSql + Send + Sync>>)
pub fn expr(&mut self, expr: &Expr) -> Result<(), SqlGenerationError>
pub fn comparison_op( &mut self, op: &ComparisonOperator, ) -> Result<(), SqlGenerationError>
pub fn predicate( &mut self, predicate: &Predicate, ) -> Result<(), SqlGenerationError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sql
impl !RefUnwindSafe for Sql
impl Send for Sql
impl Sync for Sql
impl Unpin for Sql
impl !UnwindSafe for Sql
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