pg

package
v0.0.0-...-cc467f2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultIP   = "localhost"
	DefaultPort = 5432
)

Variables

This section is empty.

Functions

func ConnString

func ConnString(user, pass, db, ip string, port int) string

func New

func New(ctx context.Context, connString string, options ...OptionFunc) (*pgxpool.Pool, error)

func ParseConfig

func ParseConfig(connString string, options ...OptionFunc) (*pgxpool.Config, error)

Types

type OptionFunc

type OptionFunc func(config *pgxpool.Config)

Jump to

Keyboard shortcuts

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