Documentation
¶
Overview ¶
Package testdb owns AuthKit's Postgres integration-test harness.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Postgres ¶
Postgres is an isolated migrated database for integration tests.
func ScratchPostgres ¶
ScratchPostgres creates, migrates, and cleans up a scratch database on the server named by QUERY_TEST_DATABASE_URL, AUTHKIT_TEST_DATABASE_URL, or SQLC_DATABASE_URL. It skips when no URL is provided so ordinary go test runs do not start integration infrastructure by accident.
Click to show internal directories.
Click to hide internal directories.