MappingStateEntry
Per-mapping sync state for version-based tracking. Stored in _sync_mapping_state table per spec Section 7.5.2.
public sealed record MappingStateEntry : IEquatable<MappingStateEntry>
Constructors
MappingStateEntry
public MappingStateEntry(string MappingId, long LastSyncedVersion, string LastSyncTimestamp, long RecordsSynced)
Per-mapping sync state for version-based tracking. Stored in _sync_mapping_state table per spec Section 7.5.2.
| Parameter | Type | Description |
|---|---|---|
MappingId |
String |
Unique mapping identifier. |
LastSyncedVersion |
Int64 |
Last _sync_log version synced for this mapping. |
LastSyncTimestamp |
String |
ISO 8601 timestamp of last sync. |
RecordsSynced |
Int64 |
Total records synced for this mapping. |
Properties
MappingId
public string MappingId { get; init; }
Unique mapping identifier.
LastSyncedVersion
public long LastSyncedVersion { get; init; }
Last _sync_log version synced for this mapping.
LastSyncTimestamp
public string LastSyncTimestamp { get; init; }
ISO 8601 timestamp of last sync.
RecordsSynced
public long RecordsSynced { get; init; }
Total records synced for this mapping.
Methods
Initial(string, string)
public static MappingStateEntry Initial(string mappingId, string timestamp)
Creates initial state for a new mapping.
Parameters:
| Name | Type | Description |
|---|---|---|
mappingId |
String |
Mapping identifier. |
timestamp |
String |
Current timestamp. |
Returns: MappingStateEntry - Initial mapping state.