Skip to content

Instantly share code, notes, and snippets.

@samuelckaufman
Created September 6, 2015 15:16
Show Gist options
  • Save samuelckaufman/b48192ca9de1b2c71df7 to your computer and use it in GitHub Desktop.
Save samuelckaufman/b48192ca9de1b2c71df7 to your computer and use it in GitHub Desktop.
type customSqlx struct {
*sqlx.DB
}
func ( db *customSqlx ) Get(dest interface{}, query string, args ...interface{}) error {
// db.trace(query,args)
return db.DB.Get(dest,query,args)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment