jet/tests/dbconfig/dbconfig.go

16 lines
361 B
Go
Raw Normal View History

2019-06-11 12:47:35 +02:00
package dbconfig
import "fmt"
// test database connection parameters
2019-06-11 12:47:35 +02:00
const (
Host = "localhost"
Port = 5432
User = "jet"
Password = "jet"
DBName = "jetdb"
2019-06-11 12:47:35 +02:00
)
// ConnectString is PostgreSQL connection string
var ConnectString = fmt.Sprintf("host=%s port=%d user=%s password=%s dbname=%s sslmode=disable", Host, Port, User, Password, DBName)