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

sqlitestore

package
v0.3.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 runkit.Store with SQLite persistence.

Run identity and query fields are stored as columns. Metadata and terminal summary tool lists are stored as JSON so hosts can keep bounded audit context without putting prompts, messages, or large artifacts in the run store.

Index

Constants

View Source
const SchemaVersion = 2

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) AppendEvent

func (s *Store) AppendEvent(ctx context.Context, event runkit.RunEvent) error

func (*Store) ApproveAndLease

func (s *Store) ApproveAndLease(ctx context.Context, request runkit.ApprovalLeaseRequest) (runkit.ApprovalCheckpoint, error)

func (*Store) Close

func (s *Store) Close() error

func (*Store) Complete

func (s *Store) Complete(ctx context.Context, runID string, summary runkit.TerminalSummary) error

func (*Store) CompleteLease

func (s *Store) CompleteLease(ctx context.Context, completion runkit.CheckpointLeaseCompletion) error

func (*Store) Create

func (s *Store) Create(ctx context.Context, record runkit.RunRecord) error

func (*Store) CreateCheckpoint

func (s *Store) CreateCheckpoint(ctx context.Context, checkpoint runkit.ApprovalCheckpoint) error

func (*Store) Events

func (s *Store) Events(ctx context.Context, runID string) ([]runkit.RunEvent, error)

func (*Store) ExpireCheckpoints

func (s *Store) ExpireCheckpoints(ctx context.Context, now time.Time) (int, error)

func (*Store) FailLease

func (s *Store) FailLease(ctx context.Context, completion runkit.CheckpointLeaseCompletion) error

func (*Store) FailPendingCheckpoint

func (s *Store) FailPendingCheckpoint(ctx context.Context, request runkit.PendingCheckpointFailure) error

func (*Store) FindByWorkflowID

func (s *Store) FindByWorkflowID(ctx context.Context, workflowID string) ([]runkit.RunRecord, error)

func (*Store) Get

func (s *Store) Get(ctx context.Context, runID string) (runkit.RunRecord, error)

func (*Store) GetCheckpoint

func (s *Store) GetCheckpoint(ctx context.Context, checkpointID, tenantID string) (runkit.ApprovalCheckpoint, error)

func (*Store) RejectCheckpoint

func (s *Store) RejectCheckpoint(ctx context.Context, request runkit.ApprovalLeaseRequest) error

Jump to

Keyboard shortcuts

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