Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
View Source
var TestMyRoachDBUrl = func() string {
return "postgresql://root@192.168.4.119:26257/cms?sslmode=disable"
}
View Source
var TestMysqlDBUrl = func() string { return fmt.Sprintf("root:leijmdas@163.comL@tcp(huawei.akunlong.top:13306)/%s?charset=utf8&mb4&parseTime=True&loc=Local", "hrms") }
View Source
var TestRoachPgDBUrl = func() string { return fmt.Sprintf("host=%s port=%d user=%s dbname=%s password=%s sslmode=require", "192.168.13.235", 26257, "code", "cms", "123456") }
Functions ¶
func InitDB_Config ¶
func InitDB_Config() (*gorm.DB, *config.GeneralConfig)
func InitDbMysql ¶
func InitDbPostgres ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.