dbx

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPGXPool

func GetPGXPool(ctx context.Context) (*pgxpool.Pool, error)

GetPGXPool returns the process-wide singleton *pgxpool.Pool.

func GetSQL

func GetSQL(ctx context.Context) (*sql.DB, error)

GetSQL returns the process-wide singleton *sql.DB.

func NewPGXPool

func NewPGXPool(ctx context.Context, dsn string) (*pgxpool.Pool, error)

NewPGXPool creates a new pgxpool.Pool with the same standard settings. Use only when you explicitly want a dedicated pool (e.g. tests).

Types

This section is empty.

Jump to

Keyboard shortcuts

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