Project

sql_tagger

0.0
No commit activity in last 3 years
No release in over 3 years
sql_tagger inserts stack trace comments into SQL queries.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.1.0
>= 0
>= 0
>= 0
~> 3.4
 Project Readme

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