Error represents an error returned by PostgreSQL server using PostgreSQL ErrorResponse protocol. https://www.postgresql.org/docs/10/static/protocol-message-formats.html
| 19 | // |
| 20 | // https://www.postgresql.org/docs/10/static/protocol-message-formats.html |
| 21 | type Error interface { |
| 22 | error |
| 23 | |
| 24 | // Field returns a string value associated with an error field. |
| 25 | // |
| 26 | // https://www.postgresql.org/docs/10/static/protocol-error-fields.html |
| 27 | Field(field byte) string |
| 28 | |
| 29 | // IntegrityViolation reports whether an error is a part of |
| 30 | // Integrity Constraint Violation class of errors. |
| 31 | // |
| 32 | // https://www.postgresql.org/docs/10/static/errcodes-appendix.html |
| 33 | IntegrityViolation() bool |
| 34 | } |
| 35 | |
| 36 | var _ Error = (*internal.PGError)(nil) |
| 37 |
no outgoing calls
no test coverage detected
searching dependent graphs…