Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GormMySQLConfig ¶
type GormMySQLConfig struct {
ry.Configuration
App *ry.Application
}
func (*GormMySQLConfig) GetAutoMigrateMySQLDB ¶
func (g *GormMySQLConfig) GetAutoMigrateMySQLDB(params *GormMySQLParameter) *GormMySQLRepo
type GormMySQLParameter ¶
type GormMySQLParameter struct {
ry.Parameter
Host *string `value:"rady.mysql.host" default:"127.0.0.1"`
Port *string `value:"rady.mysql.port" default:"3306"`
Database *string `value:"rady.mysql.database"`
Username *string `value:"rady.mysql.username"`
Password *string `value:"rady.mysql.password"`
Charset *string `value:"rady.mysql.charset" default:"utf8"`
ParseTime *string `value:"rady.mysql.parseTime" default:"True"`
Loc *string `value:"rady.mysql.loc" default:"Local"`
}
type GormMySQLRepo ¶
type GormMySQLRepo struct {
ry.Repository
Db *gorm.DB
}
Click to show internal directories.
Click to hide internal directories.