testdatabase

package
v0.0.0-...-b113d69 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DbName = "test_db"
	DbUser = "test_user"
	DbPass = "test_password"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TestDatabase

type TestDatabase struct {
	DB        *pgxpool.Pool
	DBAddress string
	// contains filtered or unexported fields
}

func NewTestDatabase

func NewTestDatabase(ctx context.Context, migrationsFS fs.FS) (*TestDatabase, error)

func (*TestDatabase) TearDown

func (tdb *TestDatabase) TearDown()

Jump to

Keyboard shortcuts

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