sqlite

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: MIT Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package sqlite holds operational history in SQLite (§2.9): the development store. Tables are prefixed agentic_ because this may well share a file with the caller's own schema; nothing here should collide with a table they own. The schema is the TypeScript package's.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMissingColumns

func AddMissingColumns(ctx context.Context, db migrate.Execer) error

AddMissingColumns adds the columns a database created by an older release never got. SQLite has no ADD COLUMN IF NOT EXISTS, so this reads the table and adds what is absent — the one part of migration 0001 that cannot be expressed in the .sql file itself.

func New

func New(db *sql.DB) (ports.AdminStore, error)

New returns the store with its schema migration already running behind it (§2.9). It owns the handle from here on; Close closes it.

The returned store waits for that migration before its first call, so a caller never sees a half-built schema — but SetupAgentCore is not held up by it. Opening the database is still synchronous: a file that cannot be opened is a configuration problem worth failing on at startup.

func NewContext

func NewContext(ctx context.Context, db *sql.DB, log *slog.Logger) (ports.AdminStore, error)

NewContext is New with a context for the background migration and a logger for what it could not do.

Types

type Store

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

Store is an AdminStore over SQLite.

func (*Store) Close

func (s *Store) Close() error

func (*Store) Runs

func (s *Store) Runs() ports.RunStore

func (*Store) Steps

func (s *Store) Steps() ports.StepStore

func (*Store) Threads

func (s *Store) Threads() ports.AdminThreadStore

Jump to

Keyboard shortcuts

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