postgres

package
v0.0.0-...-f32bd8a Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithInitialDatabase

func WithInitialDatabase(user string, password string, dbName string) func(req *testcontainers.ContainerRequest)

Types

type PostgresContainer

type PostgresContainer struct {
	Image        string
	InternalPort string
}

func NewPostgresContainer

func NewPostgresContainer(image string) *PostgresContainer

func (*PostgresContainer) Close

func (pc *PostgresContainer) Close(ctx context.Context, c testcontainers.Container) error

func (*PostgresContainer) Request

func (pg *PostgresContainer) Request() testcontainers.ContainerRequest

Jump to

Keyboard shortcuts

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