remove sslmode=disable from postgresql (#1748)
remove sslmode=disable from postgresql which leads to unsafe copy and paste situations
This commit is contained in:
parent
85f22393d9
commit
4be4b87efb
@ -44,7 +44,7 @@ import (
|
||||
)
|
||||
|
||||
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()
|
||||
}
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user