dbpool

package
v0.3.0-rc.7 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, connectionString string) (*pgxpool.Pool, error)

New opens a lazy pool with the application authentication policy.

func Open

func Open(ctx context.Context, connectionString string) (*pgxpool.Pool, error)

Open creates a pgx pool from a connection string, registers UUID mappings, and verifies connectivity with Ping.

func OpenWithOptions

func OpenWithOptions(
	ctx context.Context,
	connectionString string,
	options ...poolConfigOption,
) (*pgxpool.Pool, error)

OpenWithOptions creates a pgx pool with optional configuration hooks.

func RestrictAuthentication

func RestrictAuthentication(config *pgconn.Config) error

RestrictAuthentication rejects MD5 while preserving the parsed operator policy.

func WithTracing

func WithTracing() poolConfigOption

WithTracing installs the application pgx tracer on the pool config.

Types

This section is empty.

Jump to

Keyboard shortcuts

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