package
Version:
v0.3.0
Opens a new window with list of versions in this module.
Published: Nov 8, 2026
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Connect bootstraps the database if needed, opens a pool, and applies *.up.sql migrations.
Config is PostgreSQL connection settings shared by Cotherapist Go services.
Load reads DATABASE_* env vars. defaultUser is used when DATABASE_USER is empty.
ConnectionURL builds a postgres:// DSN for the given database name.
PoolConfig parses a pgx pool config, optionally disabling prepared statements for PgBouncer.
Source Files
¶
Directories
¶
Package pgtest starts an ephemeral Postgres for tests via Testcontainers.
|
Package pgtest starts an ephemeral Postgres for tests via Testcontainers. |
Click to show internal directories.
Click to hide internal directories.