Versions in this module Expand all Collapse all v0 v0.1.1 Nov 10, 2026 v0.1.0 Nov 10, 2026 Changes in this version + const DefaultTablePrefix + const DefaultTxAttempts + const SchemaVersion + func DefaultRetryable(err error) bool + type Dialect string + const MySQL + const Postgres + const SQLite + func Dialects() []Dialect + func (d Dialect) Valid() bool + type Option func(*Store) error + func WithClock(c clock.Clock) Option + func WithRetention(r recorder.Retention) Option + func WithRetryable(fn func(error) bool) Option + func WithTablePrefix(p string) Option + func WithTxAttempts(n int) Option + type Store struct + func New(db *sql.DB, d Dialect, opts ...Option) (*Store, error) + func (s *Store) AddEvent(ctx context.Context, e recorder.EventWrite) error + func (s *Store) Dialect() Dialect + func (s *Store) EndStep(ctx context.Context, e recorder.StepEnd) error + func (s *Store) FinishRun(ctx context.Context, f recorder.Finish) error + func (s *Store) MarkChecked(ctx context.Context, c recorder.Check) error + func (s *Store) Migrate(ctx context.Context) error + func (s *Store) MigrationScripts() []string + func (s *Store) Pending(ctx context.Context, limit int) ([]recorder.RunRecord, error) + func (s *Store) Prune(ctx context.Context) (recorder.PruneResult, error) + func (s *Store) Records(ctx context.Context, q recorder.Query) (recorder.RecordPage, error) + func (s *Store) Run(ctx context.Context, ref workflow.RunRef) (recorder.RunRecord, error) + func (s *Store) Runs(ctx context.Context, q workflow.RunQuery) (workflow.RunPage, error) + func (s *Store) SetOutcome(ctx context.Context, o recorder.OutcomeWrite) error + func (s *Store) StartStep(ctx context.Context, st recorder.StepStart) error + func (s *Store) TablePrefix() string + func (s *Store) UpsertRun(ctx context.Context, w recorder.RunWrite) error