Documentation ¶ Index ¶ func SetupTestDB(t *testing.T) *pgxpool.Pool Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func SetupTestDB ¶ func SetupTestDB(t *testing.T) *pgxpool.Pool SetupTestDB starts an ephemeral Postgres 17 container, runs all migrations, and returns a ready pgxpool.Pool. The container and pool are closed automatically when the test finishes. Types ¶ This section is empty. Source Files ¶ View all Source files db.go Click to show internal directories. Click to hide internal directories.