postgres

package module
v0.0.0-...-6ca9b55 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMustPostgres

func NewMustPostgres(cfg *Config) *pgx.Conn

func NewMustPostgresPool

func NewMustPostgresPool(cfg *Config) *pgxpool.Pool

func NewPostgres

func NewPostgres(cfg *Config) (*pgx.Conn, error)

func NewPostgresPool

func NewPostgresPool(cfg *Config) (*pgxpool.Pool, error)

Types

type Config

type Config struct {
	URL     string
	Timeout time.Duration
}

Jump to

Keyboard shortcuts

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