3 Star 5 Fork 3

三三物联网/ssiot-core

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
type.go 377 Bytes
Copy Edit Raw Blame History
三三物联网 authored 2023-04-01 18:08 . 结构调整
package dbconfig
import (
"gorm.io/gorm"
"gorm.io/plugin/dbresolver"
)
var policies = map[string]dbresolver.Policy{
"random": dbresolver.RandomPolicy{},
}
type Configure interface {
Init(*gorm.Config, func(string) gorm.Dialector) (*gorm.DB, error)
}
type ResolverConfigure interface {
Init(*dbresolver.DBResolver, func(string) gorm.Dialector) *dbresolver.DBResolver
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sansaniot/ssiot-core.git
git@gitee.com:sansaniot/ssiot-core.git
sansaniot
ssiot-core
ssiot-core
v1.7.8

Search