postgres

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	// contains filtered or unexported fields
}

func New

func New(creq ContainerRequest) (*Container, func(), error)

func NewCtx

func NewCtx(ctx context.Context, creq ContainerRequest) (*Container, func(), error)

func (*Container) CreateDatabse

func (c *Container) CreateDatabse(opts Options) (string, error)

func (*Container) DSN

func (c *Container) DSN() string

type ContainerRequest

type ContainerRequest struct {
	testcontainers.GenericContainerRequest
	InitScripts InitScripts
}

type InitScripts

type InitScripts struct {
	FromDir   string
	FromFiles []string
	Inline    string
}

type Options

type Options struct {
	PrefixName  string
	InitScripts InitScripts
}

Jump to

Keyboard shortcuts

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