Help us shape the future of Go! Take the 2026 Go Developer Survey

sqlitestore

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package sqlitestore implements workflowkit.Store with SQLite persistence.

Scalar workflow fields are stored as columns. Completed steps, step attempts, step records, and metadata are stored as JSON fields so the Store contract can persist the full workflow state while keeping payload storage host-owned.

Index

Constants

View Source
const SchemaVersion = 3

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func Open

func Open(path string) (*Store, error)

func (*Store) ClaimRunnable

func (s *Store) ClaimRunnable(ctx context.Context, workerID string, lease time.Duration) (workflowkit.WorkflowRun, error)

func (*Store) Close

func (s *Store) Close() error

func (*Store) ExtendLease

func (s *Store) ExtendLease(ctx context.Context, id string, workerID string, lease time.Duration) (workflowkit.WorkflowRun, error)

func (*Store) FailExpiredRunning

func (s *Store) FailExpiredRunning(ctx context.Context, reason string) ([]workflowkit.WorkflowRun, error)

func (*Store) Get

func (*Store) ListWorkflows

func (s *Store) ListWorkflows(ctx context.Context, query workflowkit.WorkflowQuery) ([]workflowkit.WorkflowRun, error)

func (*Store) ReleaseLease

func (s *Store) ReleaseLease(ctx context.Context, id string, workerID string) (workflowkit.WorkflowRun, error)

func (*Store) Save

func (s *Store) Save(ctx context.Context, run workflowkit.WorkflowRun) error

func (*Store) Update

Jump to

Keyboard shortcuts

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