postgres

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options added in v1.0.0

type Options struct {
	Url          string
	PoolMax      *int
	ConnAttempts *int
	ConnTimeout  *time.Duration
}

type Postgres

type Postgres struct {
	Pool *pgxpool.Pool
}

func New

func New(opts *Options) (*Postgres, error)

func (*Postgres) Close

func (p *Postgres) Close()

Jump to

Keyboard shortcuts

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