pgconn

package
v0.0.0-...-0cee181 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConstructURI

func ConstructURI(connDetails pgconn.Config, sslmode string) string

func GetPromscaleSecretName

func GetPromscaleSecretName(releaseName, namespace string) (string, error)

func ParseDBURI

func ParseDBURI(dbURI string) (*pgxpool.Config, error)

func UpdatePasswordInDBURI

func UpdatePasswordInDBURI(dburi, newpass string) (string, error)

Types

type DBDetails

type DBDetails struct {
	Namespace           string
	ReleaseName         string
	DBName              string
	User                string
	SecretKey           string
	PromscaleSecretName string
	Password            string
	Remote              int
}

func (*DBDetails) OpenConnectionToDB

func (d *DBDetails) OpenConnectionToDB() (*pgxpool.Pool, error)

Jump to

Keyboard shortcuts

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