Documentation
¶
Index ¶
- Variables
- func GetMySQLBySite(siteCode string) *gorm.DB
- func GetPgSQLBySite(siteCode string) *gorm.DB
- func GetRedisBySite(siteCode string) *redis.Client
- func MySQL(connStr string) (*gorm.DB, error)
- func MySQLSystem() (*gorm.DB, error)
- func PgSQL(connStr string) (*gorm.DB, error)
- func PgSQLSystem() (*gorm.DB, error)
- func Redis(connStr string) *redis.Client
- func RedisSystem() *redis.Client
Constants ¶
This section is empty.
Variables ¶
View Source
var MySQLServers = map[string]*gorm.DB{}
MySQLServers 服务器连接
View Source
var PgSQLServers = map[string]*gorm.DB{}
PgSQLServers 服务器连接
Functions ¶
func MySQL ¶
MySQL 获取 mysql 连接 dsn := "user:pass@tcp(127.0.0.1:3306)/dbname?charset=utf8mb4&parseTime=True&loc=Local"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.