mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 13:32:12 +08:00
fix code style
This commit is contained in:
@ -53,10 +53,12 @@ func generateConnectionString(datasource *models.DataSource) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sslmode := datasource.JsonData.Get("sslmode").MustString("verify-full")
|
sslmode := datasource.JsonData.Get("sslmode").MustString("verify-full")
|
||||||
u := &url.URL{Scheme: "postgres",
|
u := &url.URL{
|
||||||
User: url.UserPassword(datasource.User, password),
|
Scheme: "postgres",
|
||||||
Host: datasource.Url, Path: datasource.Database,
|
User: url.UserPassword(datasource.User, password),
|
||||||
RawQuery: "sslmode=" + url.QueryEscape(sslmode)}
|
Host: datasource.Url, Path: datasource.Database,
|
||||||
|
RawQuery: "sslmode=" + url.QueryEscape(sslmode),
|
||||||
|
}
|
||||||
|
|
||||||
return u.String()
|
return u.String()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user