package
Version:
v0.1.4
Opens a new window with list of versions in this module.
Published: Sep 20, 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
¶
Click to show internal directories.
Click to hide internal directories.