兼容代码生成
This commit is contained in:
1 parent
78671ae99e
commit
734a48dbb8
2 files changed
+1
-6
No files matched your search
@@ -1,7 +1,5 @@
|
||||
package config
|
||||
|
||||
import "gorm.io/plugin/dbresolver"
|
||||
|
||||
type Database struct {
|
||||
Driver string
|
||||
Source string
|
||||
@@ -22,7 +20,4 @@ type DBResolverConfig struct {
|
||||
var (
|
||||
DatabaseConfig = new(Database)
|
||||
DatabasesConfig = make(map[string]*Database)
|
||||
Policies = map[string]dbresolver.Policy{
|
||||
"random": dbresolver.RandomPolicy{},
|
||||
}
|
||||
)
|
||||
Reference in new issue
Block a user