ds_sync_contract 0.1.0
ds_sync_contract: ^0.1.0 copied to clipboard
Pure type contract for the ds_easy_db sync ecosystem: capabilities, conflict policies, delta and push types, and the remote adapter interface.
0.1.0 #
- Initial contract release — types only, no logic.
- Errors:
SyncErrorKind,SyncError,SyncResolution. - Capabilities:
SyncCapabilities,CapabilityFallback. - Content conflicts:
ConflictPolicy(lastWriteWins,serverWins,clientWins,custom,customThreeWay),MergeFn,ThreeWayMergeFn. - Delete conflicts:
DeleteConflictPolicy(one axis for both directions),DeleteConflictContext,DeleteConflictOutcome. - Scoping:
UserScope. - Delta pull:
DeltaResult,RemoteRecord,RemoteAnchor(opaque cursor). - Push:
PushItem,PushResult,PushStatus— always per record. - Remote adapter interface:
SyncRemoteAdapter.