pub enum Mutation {
Insert {
table: TableName,
columns: Vec<ColumnName>,
input: Box<Rel>,
conflict: ConflictAction,
returning: Vec<NamedScalar>,
},
Update {
table: TableName,
bind: BindingName,
assignments: Vec<(ColumnName, Scalar)>,
predicate: Option<Scalar>,
returning: Vec<NamedScalar>,
},
Delete {
table: TableName,
bind: BindingName,
predicate: Option<Scalar>,
returning: Vec<NamedScalar>,
},
}Expand description
Provider-neutral data mutation.
Variants§
Insert
Insert rows produced by a relation.
Fields
§
columns: Vec<ColumnName>Populated columns in input order.
§
conflict: ConflictActionConflict behavior.
§
returning: Vec<NamedScalar>Returned expressions.
Update
Update matching rows.
Fields
§
bind: BindingNameTarget binding.
§
assignments: Vec<(ColumnName, Scalar)>Assignments.
§
returning: Vec<NamedScalar>Returned expressions.
Delete
Delete matching rows.
Trait Implementations§
impl Eq for Mutation
impl StructuralPartialEq for Mutation
Auto Trait Implementations§
impl Freeze for Mutation
impl RefUnwindSafe for Mutation
impl Send for Mutation
impl Sync for Mutation
impl Unpin for Mutation
impl UnsafeUnpin for Mutation
impl UnwindSafe for Mutation
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