You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

105 lines
2.7 KiB

  1. # pq - A pure Go postgres driver for Go's database/sql package
  2. [![Build Status](https://travis-ci.org/lib/pq.svg?branch=master)](https://travis-ci.org/lib/pq)
  3. ## Install
  4. go get github.com/lib/pq
  5. ## Docs
  6. For detailed documentation and basic usage examples, please see the package
  7. documentation at <http://godoc.org/github.com/lib/pq>.
  8. ## Tests
  9. `go test` is used for testing. A running PostgreSQL server is
  10. required, with the ability to log in. The default database to connect
  11. to test with is "pqgotest," but it can be overridden using environment
  12. variables.
  13. Example:
  14. PGHOST=/run/postgresql go test github.com/lib/pq
  15. Optionally, a benchmark suite can be run as part of the tests:
  16. PGHOST=/run/postgresql go test -bench .
  17. ## Features
  18. * SSL
  19. * Handles bad connections for `database/sql`
  20. * Scan `time.Time` correctly (i.e. `timestamp[tz]`, `time[tz]`, `date`)
  21. * Scan binary blobs correctly (i.e. `bytea`)
  22. * Package for `hstore` support
  23. * COPY FROM support
  24. * pq.ParseURL for converting urls to connection strings for sql.Open.
  25. * Many libpq compatible environment variables
  26. * Unix socket support
  27. * Notifications: `LISTEN`/`NOTIFY`
  28. * pgpass support
  29. ## Future / Things you can help with
  30. * Better COPY FROM / COPY TO (see discussion in #181)
  31. ## Thank you (alphabetical)
  32. Some of these contributors are from the original library `bmizerany/pq.go` whose
  33. code still exists in here.
  34. * Andy Balholm (andybalholm)
  35. * Ben Berkert (benburkert)
  36. * Benjamin Heatwole (bheatwole)
  37. * Bill Mill (llimllib)
  38. * Bjørn Madsen (aeons)
  39. * Blake Gentry (bgentry)
  40. * Brad Fitzpatrick (bradfitz)
  41. * Charlie Melbye (cmelbye)
  42. * Chris Bandy (cbandy)
  43. * Chris Gilling (cgilling)
  44. * Chris Walsh (cwds)
  45. * Dan Sosedoff (sosedoff)
  46. * Daniel Farina (fdr)
  47. * Eric Chlebek (echlebek)
  48. * Eric Garrido (minusnine)
  49. * Eric Urban (hydrogen18)
  50. * Everyone at The Go Team
  51. * Evan Shaw (edsrzf)
  52. * Ewan Chou (coocood)
  53. * Fazal Majid (fazalmajid)
  54. * Federico Romero (federomero)
  55. * Fumin (fumin)
  56. * Gary Burd (garyburd)
  57. * Heroku (heroku)
  58. * James Pozdena (jpoz)
  59. * Jason McVetta (jmcvetta)
  60. * Jeremy Jay (pbnjay)
  61. * Joakim Sernbrant (serbaut)
  62. * John Gallagher (jgallagher)
  63. * Jonathan Rudenberg (titanous)
  64. * Joël Stemmer (jstemmer)
  65. * Kamil Kisiel (kisielk)
  66. * Kelly Dunn (kellydunn)
  67. * Keith Rarick (kr)
  68. * Kir Shatrov (kirs)
  69. * Lann Martin (lann)
  70. * Maciek Sakrejda (uhoh-itsmaciek)
  71. * Marc Brinkmann (mbr)
  72. * Marko Tiikkaja (johto)
  73. * Matt Newberry (MattNewberry)
  74. * Matt Robenolt (mattrobenolt)
  75. * Martin Olsen (martinolsen)
  76. * Mike Lewis (mikelikespie)
  77. * Nicolas Patry (Narsil)
  78. * Oliver Tonnhofer (olt)
  79. * Patrick Hayes (phayes)
  80. * Paul Hammond (paulhammond)
  81. * Ryan Smith (ryandotsmith)
  82. * Samuel Stauffer (samuel)
  83. * Timothée Peignier (cyberdelia)
  84. * Travis Cline (tmc)
  85. * TruongSinh Tran-Nguyen (truongsinh)
  86. * Yaismel Miranda (ympons)
  87. * notedit (notedit)