status-go/vendor/github.com/lib/pq
Andrea Maria Piana e5115d60f1 Upgrade pq library
There seems to be an issue with version 1.3, querying for topics on
postgres returns
and error:

```
panic: pq: invalid byte sequence for encoding "UTF8"
```

Upgrading pq fixes the issue

¯\_(ツ)_/¯
2021-01-27 09:23:11 +01:00
..
oid Update for status-protocol-go API changes (#1627) 2019-10-09 16:22:53 +02:00
scram Upgrade deps (#1892) 2020-03-09 08:55:58 +01:00
.gitignore Upgrade pq library 2021-01-27 09:23:11 +01:00
.travis.sh Upgrade geth to 1.9.5 and Whisper (#1617) 2019-10-04 17:21:24 +02:00
.travis.yml Upgrade pq library 2021-01-27 09:23:11 +01:00
LICENSE.md Add postgres 2019-05-15 11:01:34 +02:00
README.md Upgrade pq library 2021-01-27 09:23:11 +01:00
TESTS.md migrate to go 1.12 and go modules 2019-06-12 13:12:00 +02:00
array.go Upgrade pq library 2021-01-27 09:23:11 +01:00
buf.go Upgrade geth to 1.9.5 and Whisper (#1617) 2019-10-04 17:21:24 +02:00
conn.go Upgrade pq library 2021-01-27 09:23:11 +01:00
conn_go18.go Upgrade pq library 2021-01-27 09:23:11 +01:00
connector.go Upgrade pq library 2021-01-27 09:23:11 +01:00
copy.go Upgrade pq library 2021-01-27 09:23:11 +01:00
doc.go Upgrade pq library 2021-01-27 09:23:11 +01:00
encode.go Upgrade pq library 2021-01-27 09:23:11 +01:00
error.go Upgrade pq library 2021-01-27 09:23:11 +01:00
go.mod Upgrade pq library 2021-01-27 09:23:11 +01:00
krb.go Upgrade pq library 2021-01-27 09:23:11 +01:00
notice.go Upgrade pq library 2021-01-27 09:23:11 +01:00
notify.go Upgrade pq library 2021-01-27 09:23:11 +01:00
rows.go Add postgres 2019-05-15 11:01:34 +02:00
ssl.go Upgrade geth to 1.9.5 and Whisper (#1617) 2019-10-04 17:21:24 +02:00
ssl_permissions.go Add postgres 2019-05-15 11:01:34 +02:00
ssl_windows.go Add postgres 2019-05-15 11:01:34 +02:00
url.go Add postgres 2019-05-15 11:01:34 +02:00
user_posix.go Upgrade pq library 2021-01-27 09:23:11 +01:00
user_windows.go Add postgres 2019-05-15 11:01:34 +02:00
uuid.go Add postgres 2019-05-15 11:01:34 +02:00

README.md

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

GoDoc

Install

go get github.com/lib/pq

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
  • GSS (Kerberos) auth

Tests

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

Status

This package is effectively in maintenance mode and is not actively developed. Small patches and features are only rarely reviewed and merged. We recommend using pgx which is actively maintained.