test

package
v0.0.0-...-736631f Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UsernameTestDB = "postgres"
	PasswordTestDB = "1234"
	HostTestDB     = "localhost"
	PortTestDB     = "5436"
	DBnameTestDB   = "postgres_test"
	SslmodeTestDB  = "disable"
	UpTestDBFile   = "migrations/000001_init.up.sql"
	DownTestDBFile = "migrations/000001_init.down.sql"
	TestDataDBFile = "scripts/insert_test_data.sql"
)

Variables

This section is empty.

Functions

func OpenTestDatabase

func OpenTestDatabase() (*sqlx.DB, error)

func PrepareTestDatabase

func PrepareTestDatabase(prefix string, insert_data bool) (*sqlx.DB, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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