Documentation
¶
Overview ¶
Package postgres holds operational history in Postgres (§2.9): the production store, reached through AGENTIC_KIT_ADMIN_DATABASE_URL. Point it at its own database or the one you already have; the agentic_ prefix keeps them apart. The schema is the TypeScript package's.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Connect ¶
Connect returns the store with its schema migration already running behind it (§2.9).
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. Connecting is still synchronous: a URL that cannot be reached is a configuration problem worth failing on at startup.
Several workers starting at once is expected and safe: each migration runs under a transaction-scoped advisory lock, so they queue rather than race.
func ConnectWithLogger ¶
ConnectWithLogger is Connect with somewhere to report a migration that failed.