Interface TableSyncConfig

Per-table sync configuration.

interface TableSyncConfig {
    priority?: SyncPriority;
    realtime?: boolean;
    skip?: boolean;
    conflictStrategy?: ConflictStrategy;
    maxRecords?: number;
    mergeFn?: ((local: SyncRecord, remote: SyncRecord) => SyncRecord);
}

Properties

priority?: SyncPriority

Priority level (critical syncs first)

realtime?: boolean

Sync in realtime regardless of global mode

skip?: boolean

Skip this table in sync

conflictStrategy?: ConflictStrategy

Custom conflict resolution for this table

maxRecords?: number

Max records to keep locally (mobile optimization)

mergeFn?: ((local: SyncRecord, remote: SyncRecord) => SyncRecord)

Custom merge function for 'merge' conflict strategy