jet/tests/dbconfig/dbconfig.go

27 lines
759 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 (
PgHost = "localhost"
PgPort = 5432
PgUser = "jet"
PgPassword = "jet"
PgDBName = "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", PgHost, PgPort, PgUser, PgPassword, PgDBName)
2019-07-29 18:08:53 +02:00
// 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)