database

package
v0.0.0-...-a761922 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB

表单的全局变量

View Source
var (
	RedisClient *redis.Client
)

定义一个全局变量

Functions

func GetDB

func GetDB() *gorm.DB

返回DB的函数

func GetRedisClient

func GetRedisClient() *redis.Client

func InitClusterClient

func InitClusterClient() *redis.Client

结构体方法

func InitMysql

func InitMysql() *gorm.DB

初始化数据库

Types

This section is empty.

Jump to

Keyboard shortcuts

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