postgres

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTableName = "agentflow_runtime_events"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DB              *sql.DB
	TableName       string
	SkipSchemaSetup bool
}

type Store

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

func NewStore

func NewStore(ctx context.Context, config Config) (*Store, error)

func (*Store) Append

func (store *Store) Append(ctx context.Context, event core.Event) (obspkg.EventRecord, error)

func (*Store) EnsureSchema

func (store *Store) EnsureSchema(ctx context.Context) error

func (*Store) ListEvents

func (store *Store) ListEvents(ctx context.Context, runID string, query obspkg.EventQuery) ([]obspkg.EventRecord, error)

func (*Store) ListRuns

func (store *Store) ListRuns(ctx context.Context, query obspkg.RunQuery) ([]obspkg.RunSummary, error)

Jump to

Keyboard shortcuts

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