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