1 Star 1 Fork 0

arden / easy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
easy.go 461 Bytes
一键复制 编辑 原始数据 按行查看 历史
arden 提交于 2021-01-10 01:01 . refactor
package easy
import (
"github.com/arden/easy/database"
easyRedis "github.com/arden/easy/database/redis"
"gorm.io/gorm"
)
// Redis returns an instance of redis client with specified configuration group name.
func Redis(name ...string) *easyRedis.Redis {
return database.GetRedis(name...)
}
// Gorm returns an instance of database ORM object with specified configuration group name.
func Gorm(name ...string) *gorm.DB {
return database.GetGorm(name...)
}
1
https://gitee.com/arden/easy.git
git@gitee.com:arden/easy.git
arden
easy
easy
main

搜索帮助