mysql

package
v0.1.64 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 6 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 // 库名
	UseMetrics   bool   // 是否使用metrics
}

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