Versions in this module Expand all Collapse all v0 v0.4.1 Aug 29, 2026 v0.4.0 Aug 28, 2026 Changes in this version + var ErrNoSession = errors.New("agentloopsql: no such session") + type SessionInfo struct + CreatedAt time.Time + ID string + Model string + Opening string + Status string + Steps int32 + Tokens agentloop.TokenUsage + UpdatedAt time.Time + type Store struct + func Open(path string, clock func() time.Time) (*Store, error) + func (s *Store) Append(ctx context.Context, step agentloop.RunStep) error + func (s *Store) Close() error + func (s *Store) DB() *sql.DB + func (s *Store) Delete(ctx context.Context, id string) error + func (s *Store) Exists(ctx context.Context, id string) (bool, error) + func (s *Store) Finalize(ctx context.Context, id string, sum agentloop.FinalizeSummary) error + func (s *Store) Get(ctx context.Context, id string) (agentloop.Session, error) + func (s *Store) Grant(ctx context.Context, sessionID, prompt string) error + func (s *Store) Grants(ctx context.Context, sessionID string) ([]string, error) + func (s *Store) IsGranted(ctx context.Context, sessionID, prompt string) (bool, error) + func (s *Store) LastN(ctx context.Context, sessionID string, n int) ([]agentloop.RunStep, error) + func (s *Store) List(ctx context.Context, limit int) ([]SessionInfo, error) + func (s *Store) MostRecent(ctx context.Context) (string, error) + func (s *Store) Revoke(ctx context.Context, sessionID string) error + func (s *Store) Steps(ctx context.Context, sessionID string) ([]agentloop.RunStep, error) + func (s *Store) UpdateData(ctx context.Context, id string, snapshot json.RawMessage) error