• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

certs/H24-Mar-2017-245236

hstore/H24-Mar-2017-268229

listen_example/H24-Mar-2017-971

oid/H24-Mar-2017-256236

.gitignoreH A D24-Mar-201720 54

.travis.shH A D24-Mar-20172.3 KiB7460

.travis.ymlH A D24-Mar-2017923 4639

CONTRIBUTING.mdH A D24-Mar-20171.2 KiB3022

LICENSE.mdH A D24-Mar-20171.1 KiB95

README.mdH A D24-Mar-20172.7 KiB10687

array.goH A D24-Mar-201717.2 KiB757595

array_test.goH A D24-Mar-201733.2 KiB1,3181,126

bench_test.goH A D24-Mar-201710 KiB436367

buf.goH A D24-Mar-20171.6 KiB9273

conn.goH A D24-Mar-201741.8 KiB1,8161,517

conn_go18.goH A D24-Mar-20172.1 KiB10889

conn_test.goH A D24-Mar-201735 KiB1,5861,339

copy.goH A D24-Mar-20175.7 KiB283223

copy_test.goH A D24-Mar-20178.9 KiB466383

doc.goH A D24-Mar-20178.6 KiB2361

encode.goH A D24-Mar-201715.3 KiB596461

encode_test.goH A D24-Mar-201722 KiB759650

error.goH A D24-Mar-201715 KiB509417

go18_test.goH A D24-Mar-20175 KiB211167

issues_test.goH A D24-Mar-2017440 2720

notify.goH A D24-Mar-201721.9 KiB783463

notify_test.goH A D24-Mar-201710.6 KiB565449

ssl.goH A D24-Mar-20174.9 KiB159107

ssl_go1.7.goH A D24-Mar-2017411 155

ssl_permissions.goH A D24-Mar-2017428 2112

ssl_renegotiation.goH A D24-Mar-2017151 93

ssl_test.goH A D24-Mar-20178 KiB280211

ssl_windows.goH A D24-Mar-2017267 102

url.goH A D24-Mar-20171.6 KiB7745

url_test.goH A D24-Mar-20171.4 KiB6756

user_posix.goH A D24-Mar-2017409 2516

user_windows.goH A D24-Mar-2017871 2816

uuid.goH A D24-Mar-2017555 2418

uuid_test.goH A D24-Mar-20171.1 KiB4738

README.md

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