pub struct Delete {
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§
§tables: Vec<ObjectName>
Multi tables delete are supported in mysql
from: FromTable
FROM
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<'de> Deserialize<'de> for Delete
impl<'de> Deserialize<'de> for Delete
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for Delete
impl Ord for Delete
source§impl PartialEq for Delete
impl PartialEq for Delete
source§impl PartialOrd for Delete
impl PartialOrd for Delete
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl VisitMut for Delete
impl VisitMut for Delete
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
impl 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 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