 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
- Variables
- func AssertOneRow(l int) error
- func BytesToString(b []byte) string
- func LogQuery(query string)
- func Logf(s string, args ...interface{})
- func SliceNextElem(v reflect.Value) reflect.Value
- func StringToBytes(s string) []byte
- func ToExported(s string) string
- func ToUpper(s string) string
- func Underscore(s string) string
- type Error
- type PGError
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 AssertOneRow ¶
func BytesToString ¶
func StringToBytes ¶
func ToExported ¶
func Underscore ¶
Underscore converts "CamelCasedString" to "camel_cased_string".
Types ¶
type PGError ¶
type PGError struct {
	// contains filtered or unexported fields
}
    func NewPGError ¶
func (PGError) IntegrityViolation ¶
 Click to show internal directories. 
   Click to hide internal directories.