remove sslmode=disable from postgresql

remove sslmode=disable from postgresql which leads to unsafe copy and paste situations
This commit is contained in:
Jonas Droste 2018-02-01 14:27:07 +01:00 committed by GitHub
parent 85f22393d9
commit d42809302c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,7 @@ import (
) )
func main() { func main() {
db, err := gorm.Open("postgres", "host=myhost port=myport user=gorm dbname=gorm sslmode=disable password=mypassword") db, err := gorm.Open("postgres", "host=myhost port=myport user=gorm dbname=gorm password=mypassword")
defer db.Close() defer db.Close()
} }
``` ```