database

package
Version: v0.0.0-...-40d3858 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatabaseManager

type DatabaseManager struct {
	// contains filtered or unexported fields
}

func DBManager

func DBManager() *DatabaseManager

func (*DatabaseManager) Conn

func (dbMgr *DatabaseManager) Conn() (*gorm.DB, error)

获取数据库连接

func (*DatabaseManager) Init

func (dbMgr *DatabaseManager) Init(databaseConfig database_conf.DBConfig) error

初始化数据库配置文件

Source Files

Jump to

Keyboard shortcuts

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