Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ModuleMySQL = fx.Module( "ufx_gormfx_mysql", fx.Provide( ParamsFromConf, MySQLParamsFromConf, NewMySQLDialector, NewConfig, NewClient, ), fx.Invoke(AddCheckerForClient), )
Functions ¶
func NewMySQLDialector ¶
func NewMySQLDialector(params MySQLParams) gorm.Dialector
Types ¶
type MySQLParams ¶
type MySQLParams struct {
DSN string `json:"dsn" default:"root:root@tcp(localhost:3306)/test?charset=utf8mb4&parseTime=True&loc=Local" validate:"required"`
}
func MySQLParamsFromConf ¶
func MySQLParamsFromConf(conf ufx.Conf) (params MySQLParams, err error)
Click to show internal directories.
Click to hide internal directories.