pgdb

package
v0.0.0-...-d0db03d Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

func Dial(ctx context.Context, username string, password string, hostPort string, database string, opts ...DialOption) (*pgxpool.Pool, error)

func Migrate

func Migrate(pool *pgxpool.Pool, fsys fs.FS, opts ...MigrateOption) error

Types

type DialOption

type DialOption func(opts *dialOpts)

func WithTLS

func WithTLS(tls TLSConfig) DialOption

type MigrateOption

type MigrateOption func(opts *migrationOptions)

func WithVersion

func WithVersion(version uint) MigrateOption

type TLSConfig

type TLSConfig struct {
	CertFile           string // Path to the client certificate file.
	KeyFile            string // Path to the client key file.
	CACertFile         string // Path to the CA certificate file.
	InsecureSkipVerify bool   // Allows skipping TLS certificate verification.
}

Jump to

Keyboard shortcuts

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