{"modulePath":"github.com/eadwinCode/agentic-kit/packages/go-agentenkit","version":"v0.14.6","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package sqlite\n\nPackage 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.\n\n## Functions\n\n```go\nfunc AddMissingColumns(ctx context.Context, db migrate.Execer) error\n```\nAddMissingColumns 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.\n\n```go\nfunc New(db *sql.DB) (ports.AdminStore, error)\n```\nNew returns the store with its schema migration already running behind it (§2.9). It owns the handle from here on; Close closes it.\n\nThe 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.\n\n```go\nfunc NewContext(ctx context.Context, db *sql.DB, log *slog.Logger) (ports.AdminStore, error)\n```\nNewContext is New with a context for the background migration and a logger for what it could not do.\n\n## Types\n\n```go\ntype Store struct {\n\t// contains filtered or unexported fields\n}\n```\nStore is an AdminStore over SQLite.\n\n```go\nfunc (s *Store) Close() error\n```\n\n```go\nfunc (s *Store) Runs() ports.RunStore\n```\n\n```go\nfunc (s *Store) Steps() ports.StepStore\n```\n\n```go\nfunc (s *Store) Threads() ports.AdminThreadStore\n```\n\n","path":"github.com/eadwinCode/agentic-kit/packages/go-agentenkit/admin/sqlite","name":"sqlite","synopsis":"Package sqlite holds operational history in SQLite (§2.9): the development store.","isRedistributable":true}
