gormdb

package
v0.0.0-...-db4e6ed Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DB *gorm.DB
)

DB Gorm

Functions

func InitDB

func InitDB()

func InitDBWithParameters

func InitDBWithParameters(params DbInfo)

func OpenDB

func OpenDB(dbDriver string, dbInfo string)

InitDB database

Types

type DbInfo

type DbInfo struct {
	DbDriver   string
	DbHost     string
	DbPort     int
	DbUser     string
	DbPassword string
	DbName     string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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