postgres

package
v0.0.0-...-6c1a112 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, conf *Config) (*sql.DB, error)

New creates a new Connect object using the given PgSQLConfig.

Types

type Config

type Config struct {
	User            string `toml:"user,commented"`
	Password        string `toml:"password,commented"`
	Host            string `toml:"host,commented"`
	Database        string `toml:"database,commented"`
	MaxConn         int    `toml:"max-conn,commented"`
	MaxIdleConn     int    `toml:"max-idle-conn,commented"`
	MaxLifetimeConn int    `toml:"max-lifetime-conn,commented"`
}

Config is ...

Jump to

Keyboard shortcuts

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