mysql

package
v0.0.0-...-5bdf5b5 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EnvMysqlUsr represents the environment variable where the mysql's username is located
	EnvMysqlUsr = "MYSQL_USR"
	// EnvMysqlPwd represents the environment variable where the mysql's password is located
	EnvMysqlPwd = "MYSQL_PWD"
	// EnvMysqlDB represents the environment variable where the mysql's database name is located
	EnvMysqlDB = "MYSQL_DB"
	// EnvMysqlHost represents the environment variable where the mysql's host is located
	EnvMysqlHost = "MYSQL_HOST"
	// EnvMysqlNetw represents the environment variable where the mysql's network is located
	EnvMysqlNetw = "SERVICE_NETW"
	// EnvMysqlPort represents the environment variable where the mysql's port is located
	EnvMysqlPort = "MYSQL_PORT"
	// EnvDefaultTimeout represents the environment variable where the default timeout is set
	EnvDefaultTimeout = "DEFAULT_TIMEOUT"

	// Timeout for any database request
	Timeout = 10 * time.Second
)

Variables

This section is empty.

Functions

func MigrateTables

func MigrateTables() (err error)

MigrateTables migrates the database tables

func OpenStream

func OpenStream() (engine *xorm.Engine, err error)

OpenStream returns a gateway to the mysql database

Types

This section is empty.

Jump to

Keyboard shortcuts

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