Documentation
¶
Overview ¶
Package mysql provides MysqlConfig and registers the GORM mysql dialector on import.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
InitDb bool
SyncForce bool
SyncVerbose bool
AliasName string
UserName string
Password string
Host string
Port int
MaxIdle int
MaxConn int
DbName string
Charset string
DisableParseTime bool
Loc string
DefaultStringSize uint
DisableDatetimePrecision bool
DontSupportRenameIndex bool
DontSupportRenameColumn bool
SkipInitializeWithVersion bool
}
Config mysql connection settings.
func (*Config) Build ¶
func (c *Config) Build() (b persistence.BaseConfig)
Click to show internal directories.
Click to hide internal directories.