MCPcopy Index your code
hub / github.com/PatchMon/PatchMon / ensureSSLMode

Function ensureSSLMode

server-source-code/internal/migrate/migrate.go:80–89  ·  view source on GitHub ↗
(databaseURL string)

Source from the content-addressed store, hash-verified

78}
79
80func ensureSSLMode(databaseURL string) string {
81 if !strings.Contains(databaseURL, "sslmode=") {
82 if strings.Contains(databaseURL, "?") {
83 databaseURL += "&sslmode=disable"
84 } else {
85 databaseURL += "?sslmode=disable"
86 }
87 }
88 return databaseURL
89}

Callers 2

RunFunction · 0.85
OpenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected