sqlite

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SqliteCheckpointStore

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

SqliteCheckpointStore implements graph.CheckpointStore using SQLite

func NewSqliteCheckpointStore

func NewSqliteCheckpointStore(opts SqliteOptions) (*SqliteCheckpointStore, error)

NewSqliteCheckpointStore creates a new SQLite checkpoint store

func (*SqliteCheckpointStore) Clear

func (s *SqliteCheckpointStore) Clear(ctx context.Context, executionID string) error

Clear removes all checkpoints for an execution

func (*SqliteCheckpointStore) Close

func (s *SqliteCheckpointStore) Close() error

Close closes the database connection

func (*SqliteCheckpointStore) Delete

func (s *SqliteCheckpointStore) Delete(ctx context.Context, checkpointID string) error

Delete removes a checkpoint

func (*SqliteCheckpointStore) InitSchema

func (s *SqliteCheckpointStore) InitSchema(ctx context.Context) error

InitSchema creates the necessary table if it doesn't exist

func (*SqliteCheckpointStore) List

func (s *SqliteCheckpointStore) List(ctx context.Context, executionID string) ([]*graph.Checkpoint, error)

List returns all checkpoints for a given execution

func (*SqliteCheckpointStore) Load

func (s *SqliteCheckpointStore) Load(ctx context.Context, checkpointID string) (*graph.Checkpoint, error)

Load retrieves a checkpoint by ID

func (*SqliteCheckpointStore) Save

func (s *SqliteCheckpointStore) Save(ctx context.Context, checkpoint *graph.Checkpoint) error

Save stores a checkpoint

type SqliteOptions

type SqliteOptions struct {
	Path      string
	TableName string // Default "checkpoints"
}

SqliteOptions configuration for SQLite connection

Jump to

Keyboard shortcuts

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