ymirtestdb

package
v0.0.0-...-2175bb8 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DbConnFromPostgresDb

func DbConnFromPostgresDb(t *testing.T, dbCfg PostgresTestDb) *sqlx.DB

func RunTestWithPostgresDB

func RunTestWithPostgresDB(dbOpts PostgresDbOptions, t *testing.T, toRun func(*testing.T, PostgresTestDb))

Types

type PostgresDbOptions

type PostgresDbOptions struct {
	UserName    string
	Password    string
	DbName      string
	HostName    string
	Version     string
	KillTimeout int
	Prepare     PrepareDbFunc
}

type PostgresTestDb

type PostgresTestDb struct {
	Host     string
	Port     string
	Schema   string
	UserName string
	Password string
	DbName   string
}

type PrepareDbFunc

type PrepareDbFunc func(*testing.T, PostgresTestDb)

Jump to

Keyboard shortcuts

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