internal

package
v4.7.8+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2016 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

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

func BytesToString(b []byte) string

func LogQuery

func LogQuery(query string)

func Logf

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

func SliceNextElem

func SliceNextElem(v reflect.Value) reflect.Value

func StringToBytes

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

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

func NewPGError

func NewPGError(m map[byte]string) PGError

func (PGError) Error

func (err PGError) Error() string

func (PGError) Field

func (err PGError) Field(k byte) string

func (PGError) IntegrityViolation

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