pub struct UpdateStmt {
pub only: bool,
pub targets: Vec<Spanned<Expr>>,
pub data: Option<DataClause>,
pub where_clause: Option<Spanned<Expr>>,
pub ret: Option<Spanned<ReturnMode>>,
}Expand description
UPDATE — modifies existing rows.
Fields§
§only: boolUPDATE ONLY person:one — single object result, not an array.
targets: Vec<Spanned<Expr>>The tables or record ids to update.
data: Option<DataClause>The payload clause (SET/CONTENT/…), if any.
where_clause: Option<Spanned<Expr>>WHERE <expr> filter selecting which rows to update.
ret: Option<Spanned<ReturnMode>>RETURN mode, if specified.
Trait Implementations§
Source§impl Clone for UpdateStmt
impl Clone for UpdateStmt
Source§fn clone(&self) -> UpdateStmt
fn clone(&self) -> UpdateStmt
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UpdateStmt
impl Debug for UpdateStmt
Source§impl PartialEq for UpdateStmt
impl PartialEq for UpdateStmt
impl StructuralPartialEq for UpdateStmt
Auto Trait Implementations§
impl Freeze for UpdateStmt
impl RefUnwindSafe for UpdateStmt
impl Send for UpdateStmt
impl Sync for UpdateStmt
impl Unpin for UpdateStmt
impl UnsafeUnpin for UpdateStmt
impl UnwindSafe for UpdateStmt
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