dsn

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrLoadingDatabaseHost     = errors.New("error loading database host")
	ErrLoadingDatabaseUser     = errors.New("error loading database user")
	ErrLoadingDatabasePassword = errors.New("error loading database password")
)

Functions

func FromDBConfig

func FromDBConfig(conf config.Database) (string, error)

FromDBConfig converts `config.Database` data to a DSN and returns it. Note: PreferSimpleProtocol is enabled to disable prepared statement caching, which prevents "cached plan must not change result type" errors https://pkg.go.dev/github.com/jackc/pgx/v5#section-readme

Types

This section is empty.

Jump to

Keyboard shortcuts

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