Guest User

Untitled

a guest
Sep 26th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. db, err := gorm.Open("postgres", "host=" + os.Getenv("HOST") + " port=5432 user=" + os.Getenv("USER") + " dbname=hosts password=" + os.Getenv("PASSWORD"))
  2.  
  3. db.Exec("SELECT * FROM information_schema.columns WHERE table_schema = 'public' AND table_name = 'hosts'")
  4.  
  5. defer db.Close()
Add Comment
Please, Sign In to add comment