Help us shape the future of Go! Take the 2026 Go Developer Survey

test

package
v1.7.13 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DEFAULT_MIGRATIONS_FILE_PATH = func() string {
	_, filename, _, ok := runtime.Caller(0)
	if !ok {
		panic("error retrieving file directory")
	}

	return path.Join(filename, "../../migrations")
}()
View Source
var DEFAULT_MIGRATIONS_TABLE_NAME = "schema_migrations"

Functions

func WithProjectionTestEnv added in v1.3.0

func WithProjectionTestEnv(body func(ProjectionTestEnv)) bool

func WithTestPgConnConfig

func WithTestPgConnConfig(body func(*pg.ConnConfig)) bool

func WithTestPgxConn

func WithTestPgxConn(body func(*pg.PgxConn, rdb.Migrate)) bool

Types

type MigrateCreator added in v1.3.0

type MigrateCreator func(tableName, filePath string) rdb.Migrate

type ProjectionTestEnv added in v1.3.0

type ProjectionTestEnv struct {
	Conn           *pg.PgxConn
	RootMigrate    rdb.Migrate
	MigrateCreator MigrateCreator
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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