Help us shape the future of Go! Take the 2026 Go Developer Survey

postgres

package
v0.0.0-...-772f697 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustOpen

func MustOpen(dsn string, opts ...db.Option) *db.SQL

func Open

func Open(dsn string, opts ...db.Option) (*db.SQL, error)

func OpenConfig

func OpenConfig(cfg Config, opts ...db.Option) (*db.SQL, error)

Types

type Config

type Config struct {
	Host     string
	Port     int
	User     string
	Password string
	Database string
	SSLMode  string
	Params   map[string]string
	DSN      string
}

Jump to

Keyboard shortcuts

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