cadrumo.adapters.persistence.profile.sync_runs module

Encrypted persistence adapter for application sync-run provenance records.

Core types: SensitivityClass.

class SyncRunRecordRepository(*, bucket_id=None, objects=None, settings=None)[source]

Bases: SecureBoundRepository[SyncRunRecord], SyncRunRecordRepositoryProtocol

Store sync provenance and its bucket event in one secure-object transaction.

Parameters:
namespace: ClassVar[str]
sensitivity: ClassVar[SensitivityClass]
schema_version: ClassVar[int]
payload_type

alias of SyncRunRecord

extract_identifier(payload)[source]

Return the natural id for payload (used as the SQL object key).

Subclasses MUST override. The base implementation raises NotImplementedError.

Return type:

str

Parameters:

payload (SyncRunRecord)

save_with_bucket_event(record, event)[source]

Commit the run record and its event with the shared backend transaction.

Return type:

None

Parameters: