Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 590 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 590 Bytes

sql_tagger

Build Status

sql_tagger is a gem that inserts comments into SQL queries. These comments include a string from Kernel#caller that (hopefully) reveals what Ruby code was responsible for performing the query.

To use this, just require the appropriate file. For example, to use this with the mysql2 gem, write require 'sql_tagger/mysql2' instead of require 'mysql2'.

Before:

SELECT 1

After:

/* program.rb:25:in `some_method' */ SELECT 1