db

package
v0.0.0-...-2950954 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPGXPool

func NewPGXPool(url string, logger *logging.Logger, ctx context.Context) (*pgxpool.Pool, error)

NewPGXPool creates a new pgxpool.Pool. url is expected to be a valid postgres connection string. See docs. This function will ping the database to ensure the connection is valid. If the connection is not valid it will retry 10 times with 2 seconds delay.

Types

This section is empty.

Jump to

Keyboard shortcuts

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