mirror of
https://github.com/gofiber/storage.git
synced 2025-10-06 00:57:38 +08:00
Update postgres.go
This commit is contained in:
@@ -55,7 +55,6 @@ func New(config ...Config) *Storage {
|
|||||||
dsn += "@"
|
dsn += "@"
|
||||||
}
|
}
|
||||||
dsn += fmt.Sprintf("%s:%d", url.QueryEscape(cfg.Host), cfg.Port)
|
dsn += fmt.Sprintf("%s:%d", url.QueryEscape(cfg.Host), cfg.Port)
|
||||||
dsn += "/" + url.QueryEscape(cfg.Database)
|
|
||||||
dsn += fmt.Sprintf("/%s?connect_timeout=%d&sslmode=disable",
|
dsn += fmt.Sprintf("/%s?connect_timeout=%d&sslmode=disable",
|
||||||
url.QueryEscape(cfg.Database),
|
url.QueryEscape(cfg.Database),
|
||||||
int64(cfg.timeout.Seconds()),
|
int64(cfg.timeout.Seconds()),
|
||||||
|
Reference in New Issue
Block a user