pub struct Delete {
pub delete_token: AttachedToken,
pub optimizer_hint: Option<OptimizerHint>,
pub tables: Vec<ObjectName>,
pub from: FromTable,
pub using: Option<Vec<TableWithJoins>>,
pub selection: Option<Expr>,
pub returning: Option<Vec<SelectItem>>,
pub order_by: Vec<OrderByExpr>,
pub limit: Option<Expr>,
}Expand description
DELETE statement.
Fields§
§delete_token: AttachedTokenToken for the DELETE keyword
optimizer_hint: Option<OptimizerHint>§tables: Vec<ObjectName>Multi tables delete are supported in mysql
from: FromTableFROM
using: Option<Vec<TableWithJoins>>USING (Snowflake, Postgres, MySQL)
selection: Option<Expr>WHERE
returning: Option<Vec<SelectItem>>RETURNING
order_by: Vec<OrderByExpr>ORDER BY (MySQL)
limit: Option<Expr>LIMIT (MySQL)
Trait Implementations§
Source§impl Ord for Delete
impl Ord for Delete
Source§impl PartialOrd for Delete
impl PartialOrd for Delete
Source§impl VisitMut for Delete
impl VisitMut for Delete
Source§fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
Mutably visit this node with the provided
VisitorMut. Read moreimpl Eq for Delete
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