pub struct CatalogDelta {
pub from_epoch: u64,
pub to_epoch: u64,
pub table_specs: BTreeMap<Symbol, CatalogTableSpec>,
pub rows_changed: BTreeMap<Symbol, BTreeMap<Symbol, CatalogSnapshotRow>>,
pub rows_deleted: BTreeMap<Symbol, BTreeMap<Symbol, CatalogDeletedRow>>,
pub sequence_changes: BTreeMap<Symbol, CatalogSequenceChange>,
}Expand description
The change set between two catalog epochs: table specs, changed and deleted rows, and sequence changes.
Produced by CatalogStore::delta_since and applied by
CatalogStore::apply_delta. See the README section “Snapshots and deltas”.
Fields§
§from_epoch: u64Epoch the delta starts from (exclusive, or 0 for a full delta).
to_epoch: u64Epoch the delta brings the store to.
table_specs: BTreeMap<Symbol, CatalogTableSpec>Table specs that must exist or match in the target store.
rows_changed: BTreeMap<Symbol, BTreeMap<Symbol, CatalogSnapshotRow>>Rows inserted or replaced, by table and key.
rows_deleted: BTreeMap<Symbol, BTreeMap<Symbol, CatalogDeletedRow>>Rows deleted, by table and key.
sequence_changes: BTreeMap<Symbol, CatalogSequenceChange>Sequence advances, by sequence name.
Trait Implementations§
Source§impl Clone for CatalogDelta
impl Clone for CatalogDelta
Source§fn clone(&self) -> CatalogDelta
fn clone(&self) -> CatalogDelta
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 CatalogDelta
impl Debug for CatalogDelta
impl Eq for CatalogDelta
Source§impl PartialEq for CatalogDelta
impl PartialEq for CatalogDelta
Source§fn eq(&self, other: &CatalogDelta) -> bool
fn eq(&self, other: &CatalogDelta) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CatalogDelta
Auto Trait Implementations§
impl Freeze for CatalogDelta
impl RefUnwindSafe for CatalogDelta
impl Send for CatalogDelta
impl Sync for CatalogDelta
impl Unpin for CatalogDelta
impl UnsafeUnpin for CatalogDelta
impl UnwindSafe for CatalogDelta
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