postgres

package
v0.20.3 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: AGPL-3.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Tag            string
	Options        []string
	ShmSize        int64
	Memory         int64
	OOMKillDisable bool
}

type Opt

type Opt func(*Config)

func WithMemory added in v0.20.3

func WithMemory(memory int64) Opt

func WithOOMKillDisable added in v0.20.3

func WithOOMKillDisable(disable bool) Opt

func WithOptions

func WithOptions(options ...string) Opt

func WithShmSize added in v0.15.8

func WithShmSize(shmSize int64) Opt

func WithTag

func WithTag(tag string) Opt

type Resource added in v0.20.0

type Resource struct {
	DB       *sql.DB
	DBDsn    string
	Database string
	Password string
	User     string
	Host     string
	Port     string

	ContainerName string
	ContainerID   string
}

func Setup added in v0.20.0

func Setup(pool *dockertest.Pool, d resource.Cleaner, opts ...func(*Config)) (*Resource, error)

Jump to

Keyboard shortcuts

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