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

testpostgres

package
v3.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (

	// PostgresqlDBImage is the PostgreSQL Image.
	PostgresqlDBImage = "postgres:latest"

	// DBUser is the default username for the PostgreSQL test database.
	DBUser = "frame"
	// DBPassword is the default password for the PostgreSQL test database.
	DBPassword = "fr@m3"
	// DBName is the default database name for the PostgreSQL test database.
	DBName = "frame_test"

	// OccurrenceValue is the number of occurrences to wait for in the log pattern.
	OccurrenceValue = 2
	// TimeoutInSeconds is the timeout duration for container startup in seconds.
	TimeoutInSeconds = 60
)

Variables

This section is empty.

Functions

func CreateDatabase

func CreateDatabase(
	ctx context.Context,
	connection data.DSN,
	dbName string,
) (data.DSN, func(context.Context), error)

CreateDatabase Creates another database with a suffix dbname on the connection supplied.

func New

func NewWithOpts

func NewWithOpts(dbName string, containerOpts ...definition.ContainerOption) definition.TestResource

Types

This section is empty.

Jump to

Keyboard shortcuts

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