本站源代码
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.
techknowlogick 3f5cdfe359 use go 1.13 (#8088) 5 anni fa
..
oid use go 1.13 (#8088) 5 anni fa
scram Use gitea forked macaron (#7933) 5 anni fa
.gitignore Use Go1.11 module (#5743) 5 anni fa
.travis.sh Use gitea forked macaron (#7933) 5 anni fa
.travis.yml Use gitea forked macaron (#7933) 5 anni fa
CONTRIBUTING.md Use Go1.11 module (#5743) 5 anni fa
LICENSE.md Added all required dependencies 8 anni fa
README.md upgrade version of lib/pq to v1.1.0 (#6640) 5 anni fa
TESTS.md Use Go1.11 module (#5743) 5 anni fa
array.go Update vendor github.com/lib/pq (#2752) 7 anni fa
buf.go Use gitea forked macaron (#7933) 5 anni fa
conn.go Use gitea forked macaron (#7933) 5 anni fa
conn_go18.go upgrade version of lib/pq to v1.1.0 (#6640) 5 anni fa
connector.go upgrade version of lib/pq to v1.1.0 (#6640) 5 anni fa
copy.go Update vendor github.com/lib/pq (#2752) 7 anni fa
doc.go upgrade version of lib/pq to v1.1.0 (#6640) 5 anni fa
encode.go Use gitea forked macaron (#7933) 5 anni fa
error.go Use gitea forked macaron (#7933) 5 anni fa
go.mod Use Go1.11 module (#5743) 5 anni fa
notify.go Use Go1.11 module (#5743) 5 anni fa
rows.go Update vendor github.com/lib/pq (#2752) 7 anni fa
ssl.go upgrade version of lib/pq to v1.1.0 (#6640) 5 anni fa
ssl_permissions.go Update vendor github.com/lib/pq (#2752) 7 anni fa
ssl_windows.go Update vendor github.com/lib/pq (#2752) 7 anni fa
url.go Added all required dependencies 8 anni fa
user_posix.go Added all required dependencies 8 anni fa
user_windows.go Added all required dependencies 8 anni fa
uuid.go Update vendor github.com/lib/pq (#2752) 7 anni fa

README.md

pq - A pure Go postgres driver for Go’s database/sql package

GoDoc Build Status

Install

go get github.com/lib/pq

Docs

For detailed documentation and basic usage examples, please see the package documentation at https://godoc.org/github.com/lib/pq.

Tests

go test is used for testing. See TESTS.md for more details.

Features

  • SSL
  • Handles bad connections for database/sql
  • Scan time.Time correctly (i.e. timestamp[tz], time[tz], date)
  • Scan binary blobs correctly (i.e. bytea)
  • Package for hstore support
  • COPY FROM support
  • pq.ParseURL for converting urls to connection strings for sql.Open.
  • Many libpq compatible environment variables
  • Unix socket support
  • Notifications: LISTEN/NOTIFY
  • pgpass support

Future / Things you can help with

  • Better COPY FROM / COPY TO (see discussion in #181)

Thank you (alphabetical)

Some of these contributors are from the original library bmizerany/pq.go whose code still exists in here.

  • Andy Balholm (andybalholm)
  • Ben Berkert (benburkert)
  • Benjamin Heatwole (bheatwole)
  • Bill Mill (llimllib)
  • Bjørn Madsen (aeons)
  • Blake Gentry (bgentry)
  • Brad Fitzpatrick (bradfitz)
  • Charlie Melbye (cmelbye)
  • Chris Bandy (cbandy)
  • Chris Gilling (cgilling)
  • Chris Walsh (cwds)
  • Dan Sosedoff (sosedoff)
  • Daniel Farina (fdr)
  • Eric Chlebek (echlebek)
  • Eric Garrido (minusnine)
  • Eric Urban (hydrogen18)
  • Everyone at The Go Team
  • Evan Shaw (edsrzf)
  • Ewan Chou (coocood)
  • Fazal Majid (fazalmajid)
  • Federico Romero (federomero)
  • Fumin (fumin)
  • Gary Burd (garyburd)
  • Heroku (heroku)
  • James Pozdena (jpoz)
  • Jason McVetta (jmcvetta)
  • Jeremy Jay (pbnjay)
  • Joakim Sernbrant (serbaut)
  • John Gallagher (jgallagher)
  • Jonathan Rudenberg (titanous)
  • Joël Stemmer (jstemmer)
  • Kamil Kisiel (kisielk)
  • Kelly Dunn (kellydunn)
  • Keith Rarick (kr)
  • Kir Shatrov (kirs)
  • Lann Martin (lann)
  • Maciek Sakrejda (uhoh-itsmaciek)
  • Marc Brinkmann (mbr)
  • Marko Tiikkaja (johto)
  • Matt Newberry (MattNewberry)
  • Matt Robenolt (mattrobenolt)
  • Martin Olsen (martinolsen)
  • Mike Lewis (mikelikespie)
  • Nicolas Patry (Narsil)
  • Oliver Tonnhofer (olt)
  • Patrick Hayes (phayes)
  • Paul Hammond (paulhammond)
  • Ryan Smith (ryandotsmith)
  • Samuel Stauffer (samuel)
  • Timothée Peignier (cyberdelia)
  • Travis Cline (tmc)
  • TruongSinh Tran-Nguyen (truongsinh)
  • Yaismel Miranda (ympons)
  • notedit (notedit)
上海开阖软件有限公司 沪ICP备12045867号-1