pqerr

package
v0.0.0-...-430e8a6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UniqueViolation     = pq.ErrorCode("23505")
	CaseNotFound        = pq.ErrorCode("20000")
	ForeignKeyViolation = pq.ErrorCode("23503")
)

Postgres error codes

Variables

This section is empty.

Functions

func Eq

func Eq(err error, code pq.ErrorCode) bool

Eq returns whether an error contains a specific PQ error code

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL