init_sync

Function init_sync 

Source
pub async fn init_sync(
    config: &Config,
    key_service: &KeyService,
    raw_db_handle: &dyn RawDbHandle,
    clock: ClockRef,
    encryption: &EncryptionService,
) -> Option<SyncComponents>
Expand description

Initialize sync infrastructure from config and credentials.

Initialize sync: create storage, extract raw sqlite3 handle, start session.

Returns None if any component isn’t available (missing config, credentials, etc.).