1 Star 0 Fork 0

brucewang / go公共库

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
brucewang authored 2022-01-05 08:08 . 公共库初始化
package database
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
}
Go
1
https://gitee.com/brucewangzhihua1/go-public-library.git
git@gitee.com:brucewangzhihua1/go-public-library.git
brucewangzhihua1
go-public-library
go公共库
v1.0.1

Search

53164aa7 5694891 3bd8fe86 5694891