Merge branch 'main' into main

This commit is contained in:
M. Efe Çetin
2023-03-12 13:02:59 +03:00
committed by GitHub
94 changed files with 2243 additions and 698 deletions

View File

@@ -1,6 +1,6 @@
module github.com/gofiber/storage/postgres
go 1.14
go 1.16
require (
github.com/gofiber/utils v1.0.1

View File

@@ -55,7 +55,7 @@ func New(config ...Config) *Storage {
dsn += url.QueryEscape(cfg.Username)
}
if cfg.Password != "" {
dsn += ":" + cfg.Password
dsn += ":" + url.QueryEscape(cfg.Password)
}
if cfg.Username != "" || cfg.Password != "" {
dsn += "@"