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
Set the WHERE clause to restrict which rows are deleted.
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 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