pub struct Operation {
pub table: String,
pub action: Action,
pub old: Vec<Option<SqlValue>>,
pub new: Vec<Option<SqlValue>>,
pub rowids: (i64, i64),
}Expand description
One row operation of the app phase.
Fields§
§table: StringThe table, as SQLite names it.
action: ActionInsert, update or delete.
old: Vec<Option<SqlValue>>Every column before the operation, in declaration order; None for a
virtual generated column, which keeps no value. Empty for an insert.
new: Vec<Option<SqlValue>>Every column after the operation; empty for a delete.
rowids: (i64, i64)The rowid before and after, meaningful only for rowid tables.
Trait Implementations§
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
impl UnwindSafe for Operation
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