add port in PostgreSQL connection example
This commit is contained in:
parent
263ef914f1
commit
514a9d84c3
@ -44,7 +44,7 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
db, err := gorm.Open("postgres", "host=myhost user=gorm dbname=gorm sslmode=disable password=mypassword")
|
||||
db, err := gorm.Open("postgres", "host=myhost port=myport user=gorm dbname=gorm sslmode=disable password=mypassword")
|
||||
defer db.Close()
|
||||
}
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user