dbutil

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustNewPostgresInstance

func MustNewPostgresInstance(
	ctx context.Context,
	dbName string,
	migrations *embed.FS,
	migrationsDir string,
) (testcontainers.Container, *sql.DB)

MustNewPostgresInstance starts a container running postgres and returns the container and the db instance. This function accepts a migrations argument which it executes against the db instance running inside the container.

Types

This section is empty.

Jump to

Keyboard shortcuts

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