Discover Packages
github.com/parallelworks/foundation
pgdb
pgdbtest
package
Version:
v0.18.0
Opens a new window with list of versions in this module.
Published: Nov 3, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package pgdbtest gives integration tests an isolated schema in a test
database.
Migrated is Open with m applied.
Open returns a pool on a fresh, empty schema, dropped when the test ends.
params are added to the URL's query, such as "pool_max_conns=2".
Schema reserves a fresh schema name in the database whose URL is in the
environment variable urlEnv, dropped when the test ends, and returns the
URL with it. It skips the test when urlEnv is not set.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.