pub struct Delete {
pub table: String,
pub filter: Option<Expr>,
pub returning: Vec<ColumnMarker>,
}Expand description
DELETE query AST node.
Fields§
§table: StringTable name.
filter: Option<Expr>WHERE clause.
returning: Vec<ColumnMarker>Columns to return (RETURNING clause). Empty = no RETURNING.
Implementations§
Source§impl Delete
impl Delete
Sourcepub fn from_table(table: impl Into<String>) -> DeleteBuilder
pub fn from_table(table: impl Into<String>) -> DeleteBuilder
Creates a new DELETE query builder for the given table.
Trait Implementations§
impl StructuralPartialEq for Delete
Auto Trait Implementations§
impl Freeze for Delete
impl RefUnwindSafe for Delete
impl Send for Delete
impl Sync for Delete
impl Unpin for Delete
impl UnsafeUnpin for Delete
impl UnwindSafe for Delete
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