testdb

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBMigrations

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

type TestDBProvider

type TestDBProvider interface {
	GetTestDB() *sqlx.DB
	Close()
}

TestDBProvider provides a migrated database and a method to close it (don't forget to do it).

func NewPostgresTestcontainerProvider

func NewPostgresTestcontainerProvider() (TestDBProvider, error)

Jump to

Keyboard shortcuts

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