pgxpool

package
v0.0.0-...-f7dd486 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePool

func CreatePool(ctx context.Context, connString string, cfg *PoolConfig) (*pgxpool.Pool, error)

Types

type PoolConfig

type PoolConfig struct {
	PingTimeout           time.Duration
	PingAttempts          int
	MinConnections        int32
	MaxConnections        int32
	MaxConnectionLifetime time.Duration
	MaxConnectionIdleTime time.Duration
	HealthCheckPeriod     time.Duration
}

Jump to

Keyboard shortcuts

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