Skip to main content

internal/infra/pg/generationvalidity.go

internal/infra/pg · 45 lines · 2 declarations · source

Declarations​

type generationBoundary​

type generationBoundary struct {
Until *time.Time
Successor, Source *string
}

Reconcile only unpublished facts from this transaction's generation. Another source's facts, including human assertions, are never shortened by reinterpretation. The exclusion constraint refuses an overlapping earlier interval; the next later assertion bounds the new fact's end.

source

func generationValidityTx​

func generationValidityTx(ctx context.Context, tx pgx.Tx, schema Schema, scope, source, generation, subject, predicate, successor string, start time.Time) (generationBoundary, error)

source