pub trait SyncularCommandHistoryExecutor: SyncularMutationExecutor {
// Required methods
fn command_history_current_row_json(
&mut self,
table: &str,
row_id: &str,
) -> Result<Option<Value>, SyncularError>;
fn command_history_record(
&mut self,
mutation_scope: &str,
entries: &[CommandHistoryEntry],
receipt: &MutationReceipt,
) -> Result<CommandHistoryRecord, SyncularError>;
fn command_history_latest(
&mut self,
state: CommandHistoryState,
) -> Result<Option<CommandHistoryRecord>, SyncularError>;
fn command_history_mark(
&mut self,
id: &str,
state: CommandHistoryState,
receipt: &MutationReceipt,
) -> Result<(), SyncularError>;
fn apply_command_history_batch(
&mut self,
mutation_scope: &str,
batch: SyncularMutationBatch,
) -> Result<MutationReceipt, SyncularError>;
// Provided method
fn apply_command_history_tracked_batch(
&mut self,
mutation_scope: &str,
batch: SyncularMutationBatch,
) -> Result<MutationReceipt, SyncularError> { ... }
}Required Methods§
fn command_history_current_row_json( &mut self, table: &str, row_id: &str, ) -> Result<Option<Value>, SyncularError>
fn command_history_record( &mut self, mutation_scope: &str, entries: &[CommandHistoryEntry], receipt: &MutationReceipt, ) -> Result<CommandHistoryRecord, SyncularError>
fn command_history_latest( &mut self, state: CommandHistoryState, ) -> Result<Option<CommandHistoryRecord>, SyncularError>
fn command_history_mark( &mut self, id: &str, state: CommandHistoryState, receipt: &MutationReceipt, ) -> Result<(), SyncularError>
fn apply_command_history_batch( &mut self, mutation_scope: &str, batch: SyncularMutationBatch, ) -> Result<MutationReceipt, SyncularError>
Provided Methods§
fn apply_command_history_tracked_batch( &mut self, mutation_scope: &str, batch: SyncularMutationBatch, ) -> Result<MutationReceipt, SyncularError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl<T> SyncularCommandHistoryExecutor for SyncularClient<DieselSqliteStore, T>where
T: SyncTransport,
Available on crate feature
native only.