codes

package
v0.0.0-...-a7107f1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrCodeNotNull        = "23502"
	ErrCodeForeignKey     = "23503"
	ErrCodeUnique         = "23505"
	ErrCodeRaiseException = "P0001"
)

Variables

This section is empty.

Functions

func ConvertToPgx4Error

func ConvertToPgx4Error(err error) (*pgconn.PgError, bool)

func ConvertToPgxError

func ConvertToPgxError(err error) (oldPgx.PgError, bool)

func ExtractPgx4ErrorCode

func ExtractPgx4ErrorCode(err error) error

func ExtractPgxErrorCode

func ExtractPgxErrorCode(err error) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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