jet/tests/dbconfig/dbconfig.go

27 lines
739 B
Go
Raw Normal View History

2019-06-11 12:47:35 +02:00
package dbconfig
import "fmt"
2019-07-29 18:08:53 +02:00
// Postgres 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
)
2019-07-29 18:08:53 +02:00
// PostgresConnectString is PostgreSQL test database connection string
var PostgresConnectString = fmt.Sprintf("host=%s port=%d user=%s password=%s dbname=%s sslmode=disable", Host, Port, User, Password, DBName)
// MySQL test database connection parameters
const (
MySqLHost = "localhost"
MySQLPort = 3306
MySQLUser = "jet"
MySQLPassword = "jet"
)
2019-08-17 18:32:01 +02:00
// MySQLConnectionString is MySQL driver connection string to test database
2019-07-29 18:08:53 +02:00
var MySQLConnectionString = fmt.Sprintf("%s:%s@tcp(%s:%d)/", MySQLUser, MySQLPassword, MySqLHost, MySQLPort)