hindsight-postgresql-store
Safe HaskellNone
LanguageGHC2021

Hindsight.Store.PostgreSQL.Projections.State

Synopsis

State Management

updateSyncProjectionState :: ProjectionId -> SQLCursor -> Transaction () Source #

Update sync projection state after successful processing

Uses the shared upsert operation from Hindsight.Projection.State which handles cursor updates and error clearing.

registerSyncProjectionInDb :: ProjectionId -> Transaction () Source #

Register a sync projection in the database if it doesn't exist

Uses the shared registration operation from Hindsight.Projection.State.

getActiveProjections :: Transaction [SyncProjectionState] Source #

Get all active sync projections from the database

Types