Documentation
¶
Overview ¶
Package db owns the pgx connection pool and the goose migration runner. It embeds the migrations (via the migrations subpackage) and exposes a small WithTx transaction helper. It may import config only.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Connect ¶
Connect opens a pgx pool and pings it. It retries the initial connection to tolerate compose start ordering (Postgres may not be ready the instant we boot).
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package migrations embeds the goose SQL migrations so they ship inside the binary and run on boot without a migrations directory on disk.
|
Package migrations embeds the goose SQL migrations so they ship inside the binary and run on boot without a migrations directory on disk. |
Click to show internal directories.
Click to hide internal directories.