Documentation ¶
Overview ¶
Deprecated: Use storj.io/common/pgerrcode instead.
Package pgerrcode implements postgres error extraction without depending on a postgres library.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromError ¶
FromError returns the 5-character PostgreSQL error code string associated with the given error, if any.
func IsConstraintViolation ¶
IsConstraintViolation returns true if provided error belongs to Integrity Constraint Violation, Class 23.
func IsInvalidSyntax ¶
IsInvalidSyntax returns whether the query syntax is invalid.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.