Documentation
¶
Overview ¶
Package pgtest opens throwaway Postgres schemas for integration tests.
Index ¶
Constants ¶
View Source
const TestDSNEnv = "HALO_TEST_PG_DSN"
TestDSNEnv names the variable holding a Postgres URL for integration tests; they skip when it is unset.
Variables ¶
This section is empty.
Functions ¶
func OpenTest ¶
OpenTest returns a migrated DB in a fresh schema (see Schema). Each call opens its own pool, so two calls on one schema model two replicas: pass the first call's schema to share it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.