database

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPgxChecker

func NewPgxChecker(pool *pgxpool.Pool) health.Checker

NewPgxChecker returns a health.Checker that pings the pgx pool.

func NewPool

func NewPool(ctx context.Context, dbCfg config.DatabaseConfig) (*pgxpool.Pool, error)

NewPool creates a pgx connection pool from the shared DatabaseConfig.

Types

This section is empty.

Jump to

Keyboard shortcuts

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