pub enum PatchsetOp<'a, T, S, B> {
Insert {
table: &'a T,
values: &'a [Value<S, B>],
indirect: bool,
},
Update {
table: &'a T,
pk: &'a [Value<S, B>],
entries: &'a [PatchsetUpdateEntry<S, B>],
indirect: bool,
},
Delete {
table: &'a T,
pk: &'a [Value<S, B>],
indirect: bool,
},
}Expand description
View over one operation in a patchset.
Variants§
Insert
INSERT. Carries every column’s value in column order.
Fields
Update
UPDATE. Carries primary-key values plus a (unit, new) entry
per non-PK column. The unit reflects the patchset format’s
missing old-value storage; consumers can map |(_, v)| v to walk
just the new values.
Fields
§
entries: &'a [PatchsetUpdateEntry<S, B>](unit, new) entries, one per column.
Delete
DELETE. Carries only the primary-key columns; the rest of the
old row is not stored in patchset format.
Implementations§
Source§impl<'a, T, S, B> PatchsetOp<'a, T, S, B>
impl<'a, T, S, B> PatchsetOp<'a, T, S, B>
Trait Implementations§
Auto Trait Implementations§
impl<'a, T, S, B> Freeze for PatchsetOp<'a, T, S, B>
impl<'a, T, S, B> RefUnwindSafe for PatchsetOp<'a, T, S, B>
impl<'a, T, S, B> Send for PatchsetOp<'a, T, S, B>
impl<'a, T, S, B> Sync for PatchsetOp<'a, T, S, B>
impl<'a, T, S, B> Unpin for PatchsetOp<'a, T, S, B>
impl<'a, T, S, B> UnsafeUnpin for PatchsetOp<'a, T, S, B>
impl<'a, T, S, B> UnwindSafe for PatchsetOp<'a, T, S, B>
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