26 lines
759 B
Go
26 lines
759 B
Go
package dbconfig
|
|
|
|
import "fmt"
|
|
|
|
// Postgres test database connection parameters
|
|
const (
|
|
PgHost = "localhost"
|
|
PgPort = 5432
|
|
PgUser = "jet"
|
|
PgPassword = "jet"
|
|
PgDBName = "jetdb"
|
|
)
|
|
|
|
// 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)
|
|
|
|
// MySQL test database connection parameters
|
|
const (
|
|
MySqLHost = "localhost"
|
|
MySQLPort = 3306
|
|
MySQLUser = "jet"
|
|
MySQLPassword = "jet"
|
|
)
|
|
|
|
// MySQLConnectionString is MySQL driver connection string to test database
|
|
var MySQLConnectionString = fmt.Sprintf("%s:%s@tcp(%s:%d)/", MySQLUser, MySQLPassword, MySqLHost, MySQLPort)
|