Documentation
¶
Index ¶
Constants ¶
View Source
const ( DriverPostgres = "postgres" DriverMysql = "mysql" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Driver string
Dsn string
Host string
Port int
User string
Password string
Database string
TablePrefix string
Debug bool
Trace bool
MaxIdleConn int
MaxOpenConn int
ConnMaxLifeTime time.Duration
SlowThreshold time.Duration // 慢查询时长,默认500ms
}
Config mysql config
Click to show internal directories.
Click to hide internal directories.