global.go 273 B

1234567891011121314151617
  1. package global
  2. import (
  3. _ "dm"
  4. _ "github.com/go-sql-driver/mysql"
  5. "gorm.io/gorm"
  6. )
  7. var (
  8. DmSQL map[string]*gorm.DB //数据库连接配置
  9. DEFAULT_DmSQL *gorm.DB //默认数据库连接配置
  10. )
  11. func init() {
  12. // 初始化达梦连接
  13. InitDm()
  14. }