{"modulePath":"github.com/eadwinCode/agentic-kit/packages/go-agentenkit","version":"v0.14.6","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package postgres\n\nPackage 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.\n\n## Functions\n\n```go\nfunc Connect(ctx context.Context, db *sql.DB) (ports.AdminStore, error)\n```\nConnect returns the store with its schema migration already running behind it (§2.9).\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. Connecting is still synchronous: a URL that cannot be reached is a configuration problem worth failing on at startup.\n\nSeveral workers starting at once is expected and safe: each migration runs under a transaction-scoped advisory lock, so they queue rather than race.\n\n```go\nfunc ConnectWithLogger(ctx context.Context, db *sql.DB, log *slog.Logger) (ports.AdminStore, error)\n```\nConnectWithLogger is Connect with somewhere to report a migration that failed.\n\n```go\nfunc Open(url string) (*sql.DB, error)\n```\nOpen opens a Postgres connection with whichever database/sql driver the process has registered: \"pgx\" (github.com/jackc/pgx/v5/stdlib) or \"postgres\" (github.com/lib/pq).\n\n## Types\n\n```go\ntype Store struct {\n\t// contains filtered or unexported fields\n}\n```\nStore is an AdminStore over Postgres.\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/postgres","name":"postgres","synopsis":"Package postgres holds operational history in Postgres (§2.9): the production store, reached through AGENTIC_KIT_ADMIN_DATABASE_URL.","isRedistributable":true}
