gorm

package
v0.0.0-...-376692f Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CONFIG *config.Config // 配置

	INSTANCE_DB *gorm.DB // GORM实例

	INSTANCE_DBList map[string]*gorm.DB // 多数据源实例
)

Functions

func DBList

func DBList()

DBList 多数据源加载

func InitGorm

func InitGorm()

InitGorm 初始化数据库并产生数据库全局变量

Types

type PluginGorm

type PluginGorm struct{}

func CreateGormPlug

func CreateGormPlug(config *config.Config) *PluginGorm

func (*PluginGorm) Register

func (*PluginGorm) Register(group *gin.RouterGroup)

func (*PluginGorm) RouterPath

func (*PluginGorm) RouterPath() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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