Scale Intelligence■ Docs
Docs / The model / SyncRule

SyncRule.

One way or two ways from the same rows: pull arms cells, push runs as a move, a conflict is decided by the rule

Figure 1SyncRulespecified
SYNCRULEdefinition at follows scopeinstalled_connectoridofferSyncOfferdirectionenum:pull|push|boththe reverse of the mapping's pull sidepush_mappings[PushMapping]over entities or leads, previewed firstpushesPredicateoptionalconflictenum:the source wins|the …pull arms cells at itcadencedurationoptionalthe mode a push runs undergrantidstateReadinessSYNCOFFERthrough offerPUSHMAPPINGthrough push_mappingsPREDICATEthrough pushesREADINESSthrough state
SyncRule is a definition at follows scope. The drawing shows its fields and the objects that they point at.
kind
definition
scope
follows
key
the installed connector and the offer, versioned
store
postgres
family
sources

Fields#

fieldtyperequirednote
installed_connectoridyes
offerSyncOfferyes
directionone of pull | push | bothyes
push_mappingsPushMappingyesthe reverse of the mapping’s pull side
pushesPredicatenoover entities or leads, previewed first
conflictone of the source wins | the record wins | the newest valid time wins | askyes
cadencedurationnopull arms cells at it
grantidyesthe mode a push runs under
stateReadinessyes

Routes that use it#

No route takes or returns SyncRule directly. The record holds it, and the objects that point at it reach it.