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

postgres

package
v0.88.2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type ConfigProperties

type ConfigProperties struct {
	DatabaseURL     string `mapstructure:"database_url"`
	DSN             string `mapstructure:"dsn"`
	Host            string `mapstructure:"host"`
	Port            string `mapstructure:"port"`
	DBname          string `mapstructure:"dbname"`
	User            string `mapstructure:"user"`
	Password        string `mapstructure:"password"`
	SSLMode         string `mapstructure:"sslmode"`
	MaxOpenConns    int    `mapstructure:"max_open_conns"`
	ConnMaxLifetime string `mapstructure:"conn_max_lifetime"`
	LogQueries      bool   `mapstructure:"log_queries"`
}

func (*ConfigProperties) ResolveDSN

func (c *ConfigProperties) ResolveDSN() string

func (*ConfigProperties) Validate added in v0.78.0

func (c *ConfigProperties) Validate() error

Jump to

Keyboard shortcuts

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