Merge pull request #991 from randomandy/patch-1

Added valid postgres connect string with host and password
This commit is contained in:
Jinzhu 2016-05-04 20:58:18 +08:00
commit 7707d480dd

View File

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