cadrumo.adapters.persistence.profile.state_projection module

Persistence adapter for the operator state-projection read contract.

Core types: TransactionCatalogueRepository.

class StateProjectionPersistenceAdapter(*, diagnostics_ports)[source]

Bases: object

Translate profile persistence records into projection-owned DTOs.

Parameters:

diagnostics_ports (DiagnosticsPorts)

read_workspace(*, bucket_id)[source]

Read and count every workspace catalogue for bucket_id.

Return type:

StateProjectionWorkspaceRead

Parameters:

bucket_id (str)

read_profile(*, profile_id)[source]

Read the profile pointer and its authenticated current record.

Return type:

StateProjectionProfileRead | None

Parameters:

profile_id (str)