Versions in this module Expand all Collapse all v10 v10.3.4 Jul 2, 2024 Changes in this version + var Deprecated = log.New(os.Stderr, "DEPRECATED: pg: ", log.LstdFlags) + var ErrMultiRows = Errorf("pg: multiple rows in result set") + var ErrNoRows = Errorf("pg: no rows in result set") + var Warn = log.New(os.Stderr, "WARN: pg: ", log.LstdFlags) + func AssertOneRow(l int) error + func Atoi(b []byte) (int, error) + func BytesToString(b []byte) string + func CamelCased(s string) string + func IsLower(c byte) bool + func IsUpper(c byte) bool + func MakeSliceNextElemFunc(v reflect.Value) func() reflect.Value + func ParseFloat(b []byte, bitSize int) (float64, error) + func ParseInt(b []byte, base int, bitSize int) (int64, error) + func ParseUint(b []byte, base int, bitSize int) (uint64, error) + func RetryBackoff(retry int, minBackoff, maxBackoff time.Duration) time.Duration + func Sleep(ctx context.Context, dur time.Duration) error + func StringToBytes(s string) []byte + func ToExported(s string) string + func ToLower(c byte) byte + func ToUpper(c byte) byte + func Underscore(s string) string + func Unwrap(err error) error + func UpperString(s string) string + func WithSpan(ctx context.Context, name string, fn func(context.Context, trace.Span) error) error + type Error struct + func Errorf(s string, args ...interface{}) Error + func (err Error) Error() string + type Logging interface + Printf func(ctx context.Context, format string, v ...interface{}) + var Logger Logging = &logger{ ... } + type PGError struct + func NewPGError(m map[byte]string) PGError + func (err PGError) Error() string + func (err PGError) Field(k byte) string + func (err PGError) IntegrityViolation() bool Other modules containing this package github.com/AirGateway/pg