Sync

Classes

Class Description
BatchApplyResult Result of applying a single batch.
BatchConfig Configuration for batch processing.
BatchManager Manages batch fetching and processing for sync operations.
ChangeApplier Applies changes to the local database with FK violation defer/retry.
ChangeNotification Represents a change notification to be sent to subscribers.
ColumnMapping Column mapping between source and target with optional transform.
ConflictResolution Result of conflict resolution.
ConflictResolver Resolves conflicts between local and remote changes.
HashVerifier Computes and verifies hashes for sync verification.
LqlExpressionEvaluator Evaluates simple LQL expressions on JSON data for sync mapping transforms.
MappedEntry Result of applying a mapping to a sync log entry.
MappedPullResult Result of mapped sync pull operation.
MappedPushResult Result of mapped sync push operation.
MappedSyncCoordinator Sync coordinator with data mapping support.
MappingConfigParseError Failed parse result.
MappingConfigParseOk Successful parse result.
MappingConfigParseResult Result type for mapping config parsing.
MappingConfigParser Parses JSON mapping configuration files.
MappingEngine Engine for applying data mappings to sync log entries.
MappingFailed Mapping failed with an error.
MappingResult Mapping result - either mapped entries or skip reason.
MappingSkipped Entry was skipped (filtered, excluded, or no mapping).
MappingStateEntry Per-mapping sync state for version-based tracking.
MappingStateManager Static methods for managing mapping state.
MappingSuccess Entry was mapped successfully to one or more targets.
MappingSyncState Per-mapping sync state. Spec Section 7.5.2 - _sync_mapping_state table.
PkMapping Primary key column mapping between source and target.
PullResult Result of a sync pull operation.
PushResult Result of a sync push operation.
RecordHash Per-record hash for hash-based tracking. Spec Section 7.5.2 - _sync_record_hashes table.
RecordHashEntry Per-record hash entry for hash-based sync tracking.
SubscriptionManager Manages real-time subscriptions for sync notifications.
SyncBatch Represents a batch of changes to be synced. Maps to spec Section 12.
SyncClient Represents a client tracked by the server for tombstone retention (_sync_clients).
SyncCoordinator Coordinates sync operations between replicas.
SyncError Base type for sync errors. Use pattern matching on derived types.
SyncErrorDatabase A database operation failed.
SyncErrorDeferredChangeFailed A change could not be applied after all retry attempts.
SyncErrorForeignKeyViolation A foreign key constraint was violated.
SyncErrorFullResyncRequired The client has fallen too far behind and requires full resync.
SyncErrorHashMismatch Hash verification failed - data inconsistency detected.
SyncErrorUnresolvedConflict A conflict was detected that could not be auto-resolved.
SyncFilter Filter expression to select which records to sync.
SyncLogEntry Represents a single entry in the unified change log (_sync_log).
SyncMappingConfig Root sync mapping configuration. Spec Section 7.3.
SyncResult Result of a full bidirectional sync operation.
SyncSchemaDefinition Database-agnostic sync schema definition using the Migration framework.
SyncSession Represents the ephemeral sync session state (_sync_session table).
SyncState Represents the sync state for a replica. Maps to _sync_state table (Appendix A).
SyncSubscription Represents a real-time subscription. Maps to spec Section 10.6.
SyncTrackingConfig Sync tracking configuration for a mapping.
SyncTrackingManager Manages sync tracking state per spec Section 7.5.
TableMapping Complete table mapping configuration. Spec Section 7.3.
TargetConfig Target table configuration for multi-target mappings.
TombstoneManager Manages tombstone retention and purging.

Enums

Enum Description
ConflictStrategy Conflict resolution strategy type.
MappingDirection Direction of sync mapping. Spec Section 7.6.
SubscriptionType Type of subscription for real-time notifications.
SyncOperation Represents the type of change operation tracked in the sync log.
SyncTrackingStrategy Sync tracking strategy. Spec Section 7.5.1.
TransformType Column value transform type. Spec Section 7.3.
UnmappedTableBehavior Behavior for tables not explicitly mapped. Spec Section 7.7.