Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gorm ¶
type Gorm struct {
Config *GormConfig `autowire:""`
*gorm.DB
}
type GormConfig ¶
type GormConfig struct {
DatabaseType string `value:"${gorm.database:=postgres}"`
Url string `value:"${gorm.url:=host=127.0.0.1 user=postgres dbname=postgres sslmode=disable password=123456}"`
MaxOpenConns int `value:"${gorm.max_open_conns:=10}"`
MaxIdleConns int `value:"${gorm.max_idle_conns:=1}"`
ConnMaxLifetime int `value:"${gorm.conn_max_life_time_s:=0}"`
EnableLog bool `value:"${gorm.enable_log:=false}"`
}
Click to show internal directories.
Click to hide internal directories.