Skip to main content

SyncularCommandHistoryExecutor

Trait SyncularCommandHistoryExecutor 

Source
pub trait SyncularCommandHistoryExecutor: SyncularMutationExecutor {
    // Required methods
    fn command_history_current_row_json(
        &mut self,
        table: &str,
        row_id: &str,
    ) -> Result<Option<Value>>;
    fn command_history_record(
        &mut self,
        mutation_scope: &str,
        entries: &[CommandHistoryEntry],
        receipt: &MutationReceipt,
    ) -> Result<CommandHistoryRecord>;
    fn command_history_latest(
        &mut self,
        state: CommandHistoryState,
    ) -> Result<Option<CommandHistoryRecord>>;
    fn command_history_mark(
        &mut self,
        id: &str,
        state: CommandHistoryState,
        receipt: &MutationReceipt,
    ) -> Result<()>;
    fn apply_command_history_batch(
        &mut self,
        mutation_scope: &str,
        batch: SyncularMutationBatch,
    ) -> Result<MutationReceipt>;

    // Provided method
    fn apply_command_history_tracked_batch(
        &mut self,
        mutation_scope: &str,
        batch: SyncularMutationBatch,
    ) -> Result<MutationReceipt> { ... }
}

Required Methods§

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> SyncularCommandHistoryExecutor for SyncularClient<DieselSqliteStore, T>
where T: SyncTransport,

Available on crate feature native only.