import "github.com/go-pg/pg/internal"
internal is a private internal package.
error.go internal.go log.go strconv.go underscore.go unsafe.go util.go
var ( ErrNoRows = Errorf("pg: no rows in result set") ErrMultiRows = Errorf("pg: multiple rows in result set") )
BytesToString converts byte slice to string.
StringToBytes converts string to byte slice.
Underscore converts "CamelCasedString" to "camel_cased_string".
func WithSpan( ctx context.Context, name string, fn func(context.Context, trace.Span) error, ) error
type Error struct {
// contains filtered or unexported fields
}
type PGError struct {
// contains filtered or unexported fields
}
Path | Synopsis |
---|---|
parser | |
pool |
Package internal imports 11 packages (graph) and is imported by 74 packages. Updated 2020-11-24. Refresh now. Tools for package owners.