4 Commits

Author SHA1 Message Date
Jack Christensen
b6669ae6dd Add PgError.SQLState method
fixes #15
2020-01-11 18:23:41 -06:00
Jack Christensen
138254da5b Refactor errors
- Use strongly typed errors internally
- SafeToRetry(error) streamlines retry logic over ErrNoBytesSent
- Timeout(error) removes the need to choose between returning a context
  and an i/o error
2019-08-27 18:05:50 -05:00
Jack Christensen
7e0022ef6b Tag errors if no bytes sent to server 2019-04-20 16:48:24 -05:00
Jack Christensen
0f8e1d30e2 Link context errors and underlying conn errors
Using golang.org/x/xerrors type errors both errors can be exposed.
2019-04-20 15:53:30 -05:00