testutils

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProjectRootPattern = regexp.MustCompile(`^(.*go-discogs).*`)

Functions

func GetDsn

func GetDsn(dt DatabaseType, db Database) string

func GetProjectRoot

func GetProjectRoot() string

Types

type Database

type Database struct {
	Username  string
	Password  string
	Hostname  string
	DBName    string
	Type      DatabaseType
	Port      string
	Container testcontainers.Container
}

func GetDatabase

func GetDatabase(db DatabaseType) Database

type DatabaseType

type DatabaseType int
const (
	MySQL DatabaseType = iota + 1
	Postgres
	SQLServer
)

Jump to

Keyboard shortcuts

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