ParentChildrenSyncDownTarget
Target for sync that downloads parent with children records
Constructors
Construct ParentChildrenSyncDownTarget from json
Properties
When sync down fetches records from older to newer, the maxTimeStamp for the sync can be updated throughout the sync, and as a result running a paused (or killed) sync does not refetch all records.
Functions
Save cleaned record in local store
Delete from local store records that a full sync down would no longer download
Continue fetching records conforming to target if any
Delete record from local store
Return ids of "dirty" records (records locally created/upated or deleted)
Return SmartSQL to identify dirty records
Get record from local store by storeId
Get records from local store by storeId
Return ids of records that should not be written over during a sync down with merge mode leave-if-changed
Gets the latest modification timestamp from the array of records.
Return ids of non-dirty records (records NOT locally created/updated or deleted)
Given a record, return true if it was locally created/updated or deleted
Given a record, return true if it was locally created
Given a record, return true if it was locally deleted
Given a record, return true if it was locally updated
Save records to local store
Start fetching records conforming to target If a value for maxTimeStamp greater than 0 is passed in, only records created/modified after maxTimeStamp should be returned