We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f12556b commit c865256Copy full SHA for c865256
postgres.go
@@ -63,5 +63,6 @@ func newPostgres(host, port, user, password, dbname string, sslmode SSLMode) (*s
63
}
64
65
func dataSource(host, port, user, password, dbname string, sslmode SSLMode) string {
66
- return fmt.Sprintf("postgres://%s:%s@%s:%s/%s?%s", user, password, host, port, dbname, sslmode)
+ return fmt.Sprintf("host=%s user=%s password=%s dbname=%s port=%s %s",
67
+ host, user, password, dbname, port, sslmode)
68
0 commit comments