Commit 93e73919 by Marcus Efraimsson

fix code style

parent 26aa575c
...@@ -53,10 +53,12 @@ func generateConnectionString(datasource *models.DataSource) string { ...@@ -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()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment