db

package
v0.0.0-...-e9e6038 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeNewDB

func MakeNewDB(dbName string) (*gorm.DB, error)

func NewDB

func NewDB(
	databaseAddress, databaseUser, databasePasswd, databaseName string, debug bool)

NewDB init db

func Session

func Session() *gorm.DB

Types

type DatabaseConf

type DatabaseConf struct {
	DatabaseAddress, DatabaseUser, DatabasePasswd, DatabaseName string
	Debug                                                       bool
}

type DatabaseConfMap

type DatabaseConfMap map[string]DatabaseConf

Jump to

Keyboard shortcuts

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