pub struct Delete {
pub with: With,
pub target: FromTermId,
pub filter: Option<ExprId>,
pub returning: Vec<ResultColumn>,
pub order_by: Vec<OrderTerm>,
pub limit: Option<ExprId>,
pub offset: Option<ExprId>,
pub limited_at: Option<(Limited, Span)>,
}Expand description
A DELETE statement.
Fields§
§with: WithThe WITH prefix.
target: FromTermIdThe target term.
filter: Option<ExprId>The WHERE clause.
returning: Vec<ResultColumn>The RETURNING columns.
order_by: Vec<OrderTerm>The ORDER BY.
limit: Option<ExprId>The LIMIT.
offset: Option<ExprId>The OFFSET.
limited_at: Option<(Limited, Span)>Where the clause the reference build has no grammar for was written.
ORDER BY and LIMIT on a DELETE or an UPDATE are a compile-time
option in SQLite, and the pinned build is not compiled with it - so the
reference answers near "ORDER": syntax error and points at the word.
The syntax register requires these to parse here, so the refusal is
the binder’s; it needs the position to be able to point at the same
word, and this is where the parser leaves it.
Trait Implementations§
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 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