pgutil

package
v1.66.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectionURL

func ConnectionURL(
	username string,
	password string,
	host string,
	port int,
	dbname string,
	extraParams map[string]string,
) (string, error)

ConnectionURL builds a PostgreSQL connection url.

func WaitForPostgres

func WaitForPostgres(ctx context.Context, log *slog.Logger, dbURL string) (*pgxpool.Pool, error)

func WaitForPostgresWithOptions

func WaitForPostgresWithOptions(
	ctx context.Context,
	dbURL string,
	opts wait.Options,
) (*pgxpool.Pool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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