dbconfig

package
v2.3.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2020 License: Apache-2.0, BSD-3-Clause, MIT Imports: 1 Imported by: 15

Documentation

Index

Constants

View Source
const (
	Host     = "localhost"
	Port     = 5432
	User     = "jet"
	Password = "jet"
	DBName   = "jetdb"
)

Postgres test database connection parameters

View Source
const (
	MySqLHost     = "localhost"
	MySQLPort     = 3306
	MySQLUser     = "jet"
	MySQLPassword = "jet"
)

MySQL test database connection parameters

Variables

View Source
var MySQLConnectionString = fmt.Sprintf("%s:%s@tcp(%s:%d)/", MySQLUser, MySQLPassword, MySqLHost, MySQLPort)

MySQLConnectionString is MySQL driver connection string to test database

View Source
var PostgresConnectString = fmt.Sprintf("host=%s port=%d user=%s password=%s dbname=%s sslmode=disable", Host, Port, User, Password, DBName)

PostgresConnectString is PostgreSQL test database connection string

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL