Last active
March 16, 2017 19:17
-
-
Save jeremylowery/e1dd7f688a26f0b8e83f4738cf8f8167 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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