pg

package
v0.0.0-...-65e2f22 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDevURI  = "postgres://%s@127.0.0.1:5432/configsum_dev?sslmode=disable&connect_timeout=5"
	DefaultTestURI = "postgres://%s@127.0.0.1:5432/configsum_test?sslmode=disable&connect_timeout=5"
)

Default URIs.

Variables

View Source
var (
	ErrDuplicateKey     = errors.New("duplicate key")
	ErrRelationNotFound = errors.New("relation not found")
)

Errors.

Functions

func IsRelationNotFound

func IsRelationNotFound(err error) bool

IsRelationNotFound indicates if err is ErrRelationNotFound.

func Wrap

func Wrap(err error) error

Wrap translates *pq.Error codes into actionable errors.

Types

This section is empty.

Jump to

Keyboard shortcuts

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