mysql

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DB *gorm.DB
)

Functions

func Initialize

func Initialize(c Configure) error

Types

type Config

type Config struct {
	Host         string // 数据库连接地址
	Port         int    // 端口
	UserName     string // 用户名
	PassWord     string // 密码
	DataBaseName string // 库名
}

type Configure

type Configure interface {
	GetConfigs() []*Config
}

Jump to

Keyboard shortcuts

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