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 ¶
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.