internal

package
v4.9.5 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2016 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const RetryBackoff = 250 * time.Millisecond

Variables

View Source
var (
	ErrNoRows    = Errorf("pg: no rows in result set")
	ErrMultiRows = Errorf("pg: multiple rows in result set")
)
View Source
var (
	Logger      *log.Logger
	QueryLogger *log.Logger
)

Functions

func BytesToString added in v4.7.5

func BytesToString(b []byte) string

func LogQuery added in v4.1.7

func LogQuery(query string)

func Logf

func Logf(s string, args ...interface{})

func SliceNextElem added in v4.1.2

func SliceNextElem(v reflect.Value) reflect.Value

func StringToBytes added in v4.7.5

func StringToBytes(s string) []byte

Types

type Error

type Error struct {
	// contains filtered or unexported fields
}

func Errorf

func Errorf(s string, args ...interface{}) Error

func (Error) Error

func (err Error) Error() string

type PGError added in v4.0.1

type PGError struct {
	// contains filtered or unexported fields
}

func NewPGError added in v4.0.1

func NewPGError(m map[byte]string) PGError

func (PGError) Error added in v4.0.1

func (err PGError) Error() string

func (PGError) Field added in v4.0.1

func (err PGError) Field(k byte) string

func (PGError) IntegrityViolation added in v4.0.1

func (err PGError) IntegrityViolation() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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