pub struct Update {Show 14 fields
pub table: TableRef,
pub extra_tables: Vec<TableRef>,
pub table_joins: Vec<Join>,
pub set: Vec<(Identifier, Expression)>,
pub from_clause: Option<From>,
pub from_joins: Vec<Join>,
pub where_clause: Option<Where>,
pub returning: Vec<Expression>,
pub output: Option<OutputClause>,
pub with: Option<With>,
pub leading_comments: Vec<String>,
pub limit: Option<Expression>,
pub order_by: Option<OrderBy>,
pub from_before_set: bool,
}Expand description
UPDATE statement
Fields§
§table: TableRef§extra_tables: Vec<TableRef>Additional tables for multi-table UPDATE (MySQL syntax)
table_joins: Vec<Join>JOINs attached to the table list (MySQL multi-table syntax)
set: Vec<(Identifier, Expression)>§from_clause: Option<From>§from_joins: Vec<Join>JOINs after FROM clause (PostgreSQL, Snowflake, SQL Server syntax)
where_clause: Option<Where>§returning: Vec<Expression>RETURNING clause (PostgreSQL, SQLite)
output: Option<OutputClause>OUTPUT clause (TSQL)
with: Option<With>WITH clause (CTEs)
leading_comments: Vec<String>Leading comments before the statement
limit: Option<Expression>LIMIT clause (MySQL)
order_by: Option<OrderBy>ORDER BY clause (MySQL)
from_before_set: boolWhether FROM clause appears before SET (Snowflake syntax)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Update
impl<'de> Deserialize<'de> for Update
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
impl StructuralPartialEq for Update
Auto Trait Implementations§
impl Freeze for Update
impl RefUnwindSafe for Update
impl Send for Update
impl Sync for Update
impl Unpin for Update
impl UnwindSafe for Update
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