utils

package
v0.0.0-...-6d5ccd8 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenDB

func OpenDB(env string) *sql.DB

OpenDB open database

Types

type DBConfig

type DBConfig struct {
	Development postgresql
	Test        postgresql
	Staging     postgresql
	Production  postgresql
}

DBConfig Type for MySql

func LoadDBConfig

func LoadDBConfig(configFile string) (*DBConfig, error)

LoadDBConfig is used to load database config

Jump to

Keyboard shortcuts

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