Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jdbc:postgresql://localhost:5432/postgres
- postgresql://postgres:12qwaszx@localhost:5432/postgres
- import (
- "github.com/jinzhu/gorm"
- _ "github.com/jinzhu/gorm/dialects/postgres"
- )
- func main() {
- db, err := gorm.Open("postgres", "host=myhost port=myport user=gorm dbname=gorm password=mypassword")
- defer db.Close()
- }
Add Comment
Please, Sign In to add comment