postgres

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: MIT Imports: 11 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
	MigrationsFolder *string
	SeedsFolder      *string
}

type Postgres

type Postgres struct {
	Pool *pgxpool.Pool
}

func New

func New(o *Options) *Postgres

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