type DBConfig struct { Driver string //ReadHost []string //WriteHost []string Host string Port string Database string Username string Password string Charset string Prefix string//table prefix ConnMaxLifetime int ConnMaxIdleTime int MaxIdleConns int MaxOpenConns int ParseTime bool//parseTime=true changes the output type of DATE and DATETIME values to time.Time instead of []byte / string The date or datetime like 0000-00-00 00:00:00 is converted into zero value of time.Time. // mysql Collation string UnixSocket string MultiStatements bool Dsn string//if Dsn is set, we will use `sql.Open("mysql", Dsn)` // pgsql Sslmode string//not supported yet TLS string//not supported yet EnableLog bool//log query }