Skip to main content

internal/infra/pg/generationrecovery.go

internal/infra/pg · 37 lines · 1 declarations · source

Declarations

func restoreMissingGenerationFactsTx

func restoreMissingGenerationFactsTx(ctx context.Context, tx pgx.Tx, schema Schema, scope, source string) error

A lost projection is still recoverable knowledge. Restore missing current outcomes under the source lock so retirement closes both the fact and its receipt in the publication transaction. Otherwise a later recovery could revive an interpretation the generation already replaced.

source