Skip to content

Instantly share code, notes, and snippets.

@jeremylowery
Last active March 16, 2017 19:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeremylowery/e1dd7f688a26f0b8e83f4738cf8f8167 to your computer and use it in GitHub Desktop.
Save jeremylowery/e1dd7f688a26f0b8e83f4738cf8f8167 to your computer and use it in GitHub Desktop.
type SQLLogger struct {
e SQLExecutor
}
func (s *SQLLogger) ExecuteSQL(sql string) []SQLRecord {
r := s.e.ExecuteSQL(sql)
fmt.Printf("SQL (%d records): %v", len(r), sql)
return r
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment