pg.v5: gopkg.in/pg.v5/internal Index | Files | Directories

package internal

import "gopkg.in/pg.v5/internal"

Index

Package Files

error.go internal.go log.go underscore.go unsafe.go util.go

Constants

const RetryBackoff = 250 * time.Millisecond

Variables

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

func AssertOneRow Uses

func AssertOneRow(l int) error

func BytesToString Uses

func BytesToString(b []byte) string

func LogQuery Uses

func LogQuery(query string)

func Logf Uses

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

func SliceNextElem Uses

func SliceNextElem(v reflect.Value) reflect.Value

func StringToBytes Uses

func StringToBytes(s string) []byte

func ToExported Uses

func ToExported(s string) string

func ToUpper Uses

func ToUpper(s string) string

func Underscore Uses

func Underscore(s string) string

Underscore converts "CamelCasedString" to "camel_cased_string".

type Error Uses

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

func Errorf Uses

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

func (Error) Error Uses

func (err Error) Error() string

type PGError Uses

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

func NewPGError Uses

func NewPGError(m map[byte]string) PGError

func (PGError) Error Uses

func (err PGError) Error() string

func (PGError) Field Uses

func (err PGError) Field(k byte) string

func (PGError) IntegrityViolation Uses

func (err PGError) IntegrityViolation() bool

Directories

PathSynopsis
parser
pool

Package internal imports 8 packages (graph) and is imported by 8 packages. Updated 2017-03-08. Refresh now. Tools for package owners.