pub struct TransactionalDefChanges {
pub txn_id: TransactionId,
pub dictionary_def: Vec<Change<DictionaryDef>>,
pub flow_def: Vec<Change<FlowDef>>,
pub namespace_def: Vec<Change<NamespaceDef>>,
pub ring_buffer_def: Vec<Change<RingBufferDef>>,
pub table_def: Vec<Change<TableDef>>,
pub view_def: Vec<Change<ViewDef>>,
pub log: Vec<Operation>,
}Fields§
§txn_id: TransactionIdTransaction ID this change set belongs to
dictionary_def: Vec<Change<DictionaryDef>>All dictionary definition changes in order (no coalescing)
flow_def: Vec<Change<FlowDef>>All flow definition changes in order (no coalescing)
namespace_def: Vec<Change<NamespaceDef>>All namespace definition changes in order (no coalescing)
ring_buffer_def: Vec<Change<RingBufferDef>>All ring buffer definition changes in order (no coalescing)
table_def: Vec<Change<TableDef>>All table definition changes in order (no coalescing)
view_def: Vec<Change<ViewDef>>All view definition changes in order (no coalescing)
log: Vec<Operation>Order of operations for replay/rollback
Implementations§
Source§impl TransactionalDefChanges
impl TransactionalDefChanges
pub fn add_dictionary_def_change(&mut self, change: Change<DictionaryDef>)
pub fn add_flow_def_change(&mut self, change: Change<FlowDef>)
pub fn add_namespace_def_change(&mut self, change: Change<NamespaceDef>)
pub fn add_ring_buffer_def_change(&mut self, change: Change<RingBufferDef>)
pub fn add_table_def_change(&mut self, change: Change<TableDef>)
pub fn add_view_def_change(&mut self, change: Change<ViewDef>)
Source§impl TransactionalDefChanges
impl TransactionalDefChanges
pub fn new(txn_id: TransactionId) -> Self
Sourcepub fn table_def_exists(&self, id: TableId) -> bool
pub fn table_def_exists(&self, id: TableId) -> bool
Check if a table exists in this transaction’s view
Sourcepub fn get_table_def(&self, id: TableId) -> Option<&TableDef>
pub fn get_table_def(&self, id: TableId) -> Option<&TableDef>
Get current state of a table within this transaction
Sourcepub fn view_def_exists(&self, id: ViewId) -> bool
pub fn view_def_exists(&self, id: ViewId) -> bool
Check if a view exists in this transaction’s view
Sourcepub fn get_view_def(&self, id: ViewId) -> Option<&ViewDef>
pub fn get_view_def(&self, id: ViewId) -> Option<&ViewDef>
Get current state of a view within this transaction
Sourcepub fn get_pending_changes(&self) -> &[Operation]
pub fn get_pending_changes(&self) -> &[Operation]
Get all pending changes for commit
Sourcepub fn txn_id(&self) -> TransactionId
pub fn txn_id(&self) -> TransactionId
Get the transaction ID
Sourcepub fn namespace_def(&self) -> &[Change<NamespaceDef>]
pub fn namespace_def(&self) -> &[Change<NamespaceDef>]
Get namespace definition changes
Trait Implementations§
Source§impl Clone for TransactionalDefChanges
impl Clone for TransactionalDefChanges
Source§fn clone(&self) -> TransactionalDefChanges
fn clone(&self) -> TransactionalDefChanges
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransactionalDefChanges
impl Debug for TransactionalDefChanges
Source§impl Default for TransactionalDefChanges
impl Default for TransactionalDefChanges
Source§fn default() -> TransactionalDefChanges
fn default() -> TransactionalDefChanges
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TransactionalDefChanges
impl RefUnwindSafe for TransactionalDefChanges
impl Send for TransactionalDefChanges
impl Sync for TransactionalDefChanges
impl Unpin for TransactionalDefChanges
impl UnwindSafe for TransactionalDefChanges
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)