Documentation
¶
Index ¶
- type SqliteCheckpointStore
- func (s *SqliteCheckpointStore) Clear(ctx context.Context, executionID string) error
- func (s *SqliteCheckpointStore) Close() error
- func (s *SqliteCheckpointStore) Delete(ctx context.Context, checkpointID string) error
- func (s *SqliteCheckpointStore) InitSchema(ctx context.Context) error
- func (s *SqliteCheckpointStore) List(ctx context.Context, executionID string) ([]*graph.Checkpoint, error)
- func (s *SqliteCheckpointStore) Load(ctx context.Context, checkpointID string) (*graph.Checkpoint, error)
- func (s *SqliteCheckpointStore) Save(ctx context.Context, checkpoint *graph.Checkpoint) error
- type SqliteOptions
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 ¶
SqliteOptions configuration for SQLite connection
Click to show internal directories.
Click to hide internal directories.