add port in PostgreSQL connection example (#1652)
This commit is contained in:
parent
04dd90a8da
commit
62721e0dda
@ -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