BlobPlan

Trait BlobPlan 

Source
pub trait BlobPlan: Send + Sync {
    // Required methods
    fn blobs_to_push(&self, changes: &[RowChange]) -> Vec<BlobRef>;
    fn blobs_to_pull(&self, changes: &[RowChange]) -> Vec<BlobRef>;
}
Expand description

Maps changeset row-changes to the blobs that must move with them.

The host knows which of its tables carry blobs and how to locate the local file. coven uploads referenced blobs before pushing a changeset and downloads them after applying an incoming one.

Required Methods§

Source

fn blobs_to_push(&self, changes: &[RowChange]) -> Vec<BlobRef>

Blobs to upload before pushing an outgoing changeset.

Source

fn blobs_to_pull(&self, changes: &[RowChange]) -> Vec<BlobRef>

Blobs to download after applying an incoming changeset.

Implementors§