postgres

package
v0.173.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultTestDBHost = GetEnvDefault("TEST_POSTGRES_HOST", "localhost")
	DefaultTestDBPort = GetEnvDefault("TEST_POSTGRES_PORT", "5432")
	DefaultTestURI    = fmt.Sprintf("postgres://postgres@%s:%s/postgres?sslmode=disable", DefaultTestDBHost, DefaultTestDBPort)
	DropTableURI      = fmt.Sprintf("postgres://postgres@%s:%s/template1?sslmode=disable", DefaultTestDBHost, DefaultTestDBPort)
)

Functions

func GetEnvDefault added in v0.167.2

func GetEnvDefault(key, fallback string) string

func ResetDefaultTestPostgresDB

func ResetDefaultTestPostgresDB() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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