psql

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultOptions = &Options{
		DatabaseName: "test-db",
		Username:     "root",
		Password:     "",
	}
)

Functions

This section is empty.

Types

type Options

type Options struct {
	DatabaseName string
	Username     string
	Password     string
}

type XPostgresContainer

type XPostgresContainer struct {
	// Just don't initialize it
	Container *postgres.PostgresContainer

	// We recommend initializing that with
	// context.Background (new empty context)
	Context context.Context
}

func (*XPostgresContainer) Start

func (p *XPostgresContainer) Start(options *Options)

func (*XPostgresContainer) StartOrError

func (p *XPostgresContainer) StartOrError(options *Options) error

func (*XPostgresContainer) Terminate

func (p *XPostgresContainer) Terminate()

func (*XPostgresContainer) TerminateOrError

func (p *XPostgresContainer) TerminateOrError() error

Jump to

Keyboard shortcuts

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