db

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package db owns the pgx connection pool lifecycle.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(ctx context.Context, cfg config.DatabaseConfig) (*pgxpool.Pool, error)

Connect opens a pgx connection pool against the configured database and pings it. Returns a pool ready for use; the caller must call pool.Close() when done.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL