Interface SyncResult

Sync result after synchronization completes.

interface SyncResult {
    success: boolean;
    direction: SyncDirection;
    recordsSynced: number;
    conflicts: number;
    duration: number;
    timestamp: string;
    tables: string[];
    errors?: Error[];
    details?: Record<string, {
        pushed: number;
        pulled: number;
        conflicts: number;
    }>;
}

Properties

success: boolean

Sync completed successfully

direction: SyncDirection

Direction of sync

recordsSynced: number

Number of records synced

conflicts: number

Number of conflicts encountered

duration: number

Duration in milliseconds

timestamp: string

Timestamp of sync

tables: string[]

Tables synced

errors?: Error[]

Errors encountered

details?: Record<string, {
    pushed: number;
    pulled: number;
    conflicts: number;
}>

Detailed per-table results