testdb

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MigrateUp

func MigrateUp(t *testing.T, migrator *migrate.Migrate)

func MigrationsDir

func MigrationsDir(t *testing.T) string

func WithDatabase

func WithDatabase(t *testing.T, opts Options, fn func(context.Context, *pgxpool.Pool, *migrate.Migrate))

Types

type Options

type Options struct {
	DatabaseURLVars []string
	NamePrefix      string
	Timeout         time.Duration
}

Jump to

Keyboard shortcuts

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