postgres

package
v0.0.0-...-fbc648f Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// contains filtered or unexported fields
}

func NewOptions

func NewOptions() *Options

func (*Options) SetConnAttempts

func (o *Options) SetConnAttempts(connAttempts int32) *Options

func (*Options) SetConnTimeout

func (o *Options) SetConnTimeout(connTimeout time.Duration) *Options

func (*Options) SetMaxPoolSize

func (o *Options) SetMaxPoolSize(maxPoolSize int32) *Options

type Postgres

type Postgres struct {
	Pool *pgxpool.Pool
}

func New

func New(connString string, opts *Options, log *slog.Logger) (*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