1 Star 1 Fork 0

go-wena / app

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
sql.go 372 Bytes
一键复制 编辑 原始数据 按行查看 历史
k3x 提交于 2021-06-04 14:09 . init
package app
import (
"context"
"gitee.com/go-wena/app/internal/sql"
"gorm.io/gorm"
)
var SQL = &sqlService{}
type sqlService struct{}
func (s *sqlService) Get(ctx context.Context) *gorm.DB {
return sql.Get(ctx)
}
func (s *sqlService) GetStats() sql.Stats {
return sql.GetStats()
}
func (s *sqlService) Ping(ctx context.Context) error {
return sql.Ping(ctx)
}
Go
1
https://gitee.com/go-wena/app.git
git@gitee.com:go-wena/app.git
go-wena
app
app
v0.0.11

搜索帮助