Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MySQLOptions ¶
type MySQLOptions struct {
Username string `mapstructure:"username"`
Password string `mapstructure:"password"`
Host string `mapstructure:"host"`
Port uint16 `mapstructure:"port"`
Database string `mapstructure:"database"`
MaxIdleConns int `mapstructure:"maxIdleConns"`
MaxOpenConns int `mapstructure:"maxOpenConns"`
CreateBatchSize int `mapstructure:"createBatchSize"`
ConnMaxLifetime time.Duration `mapstructure:"connMaxLifetime"`
ConnMaxIdleTime time.Duration `mapstructure:"connMaxIdleTime"`
}
MySQLOptions ...
func (*MySQLOptions) GetGORMInstance ¶
func (o *MySQLOptions) GetGORMInstance() (*gorm.DB, error)
GetGORMInstance ...
type Options ¶
type Options struct {
Type string `mapstrucure:"type"`
MySQL *MySQLOptions `mapstructure:"mysql"`
}
Options ...
Click to show internal directories.
Click to hide internal directories.