Companion

object Companion

Properties

Link copied to clipboard
Link copied to clipboard
const val SYNC_ERROR: String
Link copied to clipboard
Link copied to clipboard
const val SYNC_NAME: String
Link copied to clipboard
const val SYNC_OPTIONS: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
const val SYNC_STATUS: String
Link copied to clipboard
const val SYNC_TARGET: String
Link copied to clipboard
Link copied to clipboard
const val SYNC_TYPE: String
Link copied to clipboard
const val SYNCS_SOUP: String

Functions

Link copied to clipboard

Get sync state of sync given by id

Link copied to clipboard

Get sync state of sync given by name

Link copied to clipboard

Cleanup syncs soup if needed At startup, no sync could be running already If a sync is in the running state, we change it to stopped

Link copied to clipboard
fun createSyncDown(store: SmartStore, target: SyncDownTarget, options: SyncOptions, soupName: String, name: String?): SyncState

Create sync state in database for a sync down and return corresponding SyncState NB: Throws exception if there is already a sync with the same name (when name is not null)

Link copied to clipboard
fun createSyncUp(store: SmartStore, target: SyncUpTarget, options: SyncOptions, soupName: String, name: String?): SyncState

Create sync state in database for a sync up and return corresponding SyncState NB: Throws exception if there is already a sync with the same name (when name is not null)

Link copied to clipboard

Delete row for sync given by id

Delete row for sync given by name

Link copied to clipboard

Build SyncState from json

Link copied to clipboard

Get syncs with given status in the given store

Link copied to clipboard

Return true if there is a sync with the given name

Link copied to clipboard

Create syncs soup if needed