sqlstore

package module
v0.0.0-...-3440331 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2026 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLStore

type SQLStore struct {
	// contains filtered or unexported fields
}

func New

func New(writer *sql.DB, reader *sql.DB, recordTableName string, outboxTableName string) *SQLStore

func (*SQLStore) DeleteOutboxEvent

func (s *SQLStore) DeleteOutboxEvent(ctx context.Context, id string) error

func (*SQLStore) Latest

func (s *SQLStore) Latest(ctx context.Context, workflowName, foreignID string) (*workflow.Record, error)

func (*SQLStore) List

func (s *SQLStore) List(
	ctx context.Context,
	workflowName string,
	offset int64,
	limit int,
	order workflow.OrderType,
	filters ...workflow.RecordFilter,
) ([]workflow.Record, error)

func (*SQLStore) ListOutboxEvents

func (s *SQLStore) ListOutboxEvents(
	ctx context.Context,
	workflowName string,
	limit int64,
) ([]workflow.OutboxEvent, error)

func (*SQLStore) Lookup

func (s *SQLStore) Lookup(ctx context.Context, runID string) (*workflow.Record, error)

func (*SQLStore) Store

func (s *SQLStore) Store(ctx context.Context, r *workflow.Record) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL