tests

package
v0.0.0-...-9e41cc5 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RootProjectDir = "server"
	MigrationEnv   = "MIGRATIONS_DIR"
)
View Source
const (
	DBURNEnvironmentalVariable        = "DB_CONN_URN"
	MigrationDirEnvironmentalVariable = "MIGRATIONS_DIR"
	DBEnvironmentalVariable           = "DB_CONN"
)

Variables

This section is empty.

Functions

func GetConnectionString

func GetConnectionString(database string) string

func GetURNConnectionString

func GetURNConnectionString(database string) string

func GetValidator

func GetValidator() *validator.Validate

Types

type DropDatabase

type DropDatabase func()

func CreateDatabase

func CreateDatabase() (*pgxpool.Pool, DropDatabase, error)

Jump to

Keyboard shortcuts

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