CommitSynchronizer

class dsviper.CommitSynchronizer(source, target, mode='Sync', size_of_packed_blobs=25000000)

Bases: object

A class used to synchronize two concrete databases through the CommitDatabasing interface (low-level driver interface).

MODE_FETCH = 'Fetch'
MODE_PUSH = 'Push'
MODE_SYNC = 'Sync'
mode() str

Return the mode.

size_of_packed_blobs() int

Return the size of the blob used to pack smaller blobs together.

source() CommitDatabasing

Return the CommitDatabasing interface for the source.

sync(logging: Logging) CommitSynchronizerInfo

Synchronize the content of the source and the target.

target() CommitDatabasing

Return the CommitDatabasing interface for the target.