mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
add postgres DSN config option
This commit is contained in:
@@ -66,6 +66,10 @@ func mysqlConnectionString(config *dbConfig) string {
|
||||
}
|
||||
|
||||
func postgresConnectionString(config *dbConfig) string {
|
||||
if len(config.DSN) > 0 {
|
||||
return config.DSN
|
||||
}
|
||||
|
||||
sslmode := "disable"
|
||||
if config.Ssl {
|
||||
sslmode = "require"
|
||||
|
||||
Reference in New Issue
Block a user