pub struct DeleteBuilder { /* private fields */ }Expand description
Fluent builder for constructing DELETE FROM statements.
Created by the delete() entry-point function. Supports an optional .where_()
predicate.
Implementations§
Source§impl DeleteBuilder
impl DeleteBuilder
Sourcepub fn where_(self, condition: Expr) -> Self
pub fn where_(self, condition: Expr) -> Self
Add a predicate to the WHERE clause, combining repeated calls with AND.
Sourcepub fn where_with_options(self, condition: Expr, options: ClauseOptions) -> Self
pub fn where_with_options(self, condition: Expr, options: ClauseOptions) -> Self
Add or replace the WHERE clause according to options.append.
Sourcepub fn build(self) -> Expression
pub fn build(self) -> Expression
Consume this builder and produce the final Expression::Delete AST node.
Auto Trait Implementations§
impl Freeze for DeleteBuilder
impl RefUnwindSafe for DeleteBuilder
impl Send for DeleteBuilder
impl Sync for DeleteBuilder
impl Unpin for DeleteBuilder
impl UnsafeUnpin for DeleteBuilder
impl UnwindSafe for DeleteBuilder
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