test

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const PGExpectedSchemaVersion = 3

Variables

This section is empty.

Functions

func CreatePGTestDB

func CreatePGTestDB(t *testing.T, settings *TestDBSettings) *pg.Options

func DropTestDB

func DropTestDB(t *testing.T, opts pg.Options)

func PGTestDSN

func PGTestDSN() string

Types

type TestDBSettings

type TestDBSettings struct {
	MigrationsPath        string
	ExpectedSchemaVersion int64
}

Jump to

Keyboard shortcuts

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