pool

package
v0.0.0-...-dbef5ef Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, databaseURL string, poolName string, options ...Option) (types.DBTX, *pgxpool.Pool, error)

Types

type Option

type Option func(config *pgxpool.Config, retryConfig *retry.Config)

func WithMaxConnections

func WithMaxConnections(maxConns int32) Option

func WithMinIdle

func WithMinIdle(minIdle int32) Option

func WithRetryConfig

func WithRetryConfig(opts ...retry.Option) Option

WithRetryConfig sets custom retry configuration. If not provided, default retry configuration is used.

Jump to

Keyboard shortcuts

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