1 Star 0 Fork 0

kade / mcube

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
interface.go 240 Bytes
一键复制 编辑 原始数据 按行查看 历史
kadegolang 提交于 2023-12-13 17:31 . copy
package datasource
import (
"context"
"gitee.com/go-kade/mcube/ioc"
"gorm.io/gorm"
)
const (
AppName = "datasource"
)
func DB(ctx context.Context) *gorm.DB {
return ioc.Config().Get(AppName).(*dataSource).GetTransactionOrDB(ctx)
}
1
https://gitee.com/go-kade/mcube.git
git@gitee.com:go-kade/mcube.git
go-kade
mcube
mcube
1225d9a674f1

搜索帮助