db

package
v0.0.0-...-96c7ced Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DB        *gorm.DB
	ErrDBNull = errors.New("db is null,please connect first")
)

Functions

func Connect

func Connect(user, password, host string, dbPort, dbName string)

func ConnectAndInit

func ConnectAndInit(conf config.ConfStruct, models ...interface{})

func Init

func Init(models ...interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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