Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MysqlCfg ¶
type MysqlCfg struct { Host string `json:"host"` Password string `json:"password"` Dbname string `json:"dbname"` User string `json:"user"` Port int `json:"port"` Charset string `json:"charset" default:"“utf8mb4"` MaxIdleConn int `json:"max_idle_conn" default:"10"` MaxOpenConn int `json:"max_open_conn" default:"100"` }
type MysqlClient ¶
func GetInstanceGOrm ¶
func GetInstanceGOrm(cfg *MysqlCfg) (*MysqlClient, error)
Click to show internal directories.
Click to hide internal directories.