Hello

I've just published super-simple sequel_marginalia gem:
https://github.com/zverok/sequel_marginalia, which is based on idea of
37signals' marginalia: https://github.com/37signals/marginalia

It is used as an Sequel database extension, and does only one things: just
add's comment with caller to every SQL request.

I.e. before:

sql.log:
SELECT COUNT(*) FROM `clients`

After:
/* lib/myapp/somefile.rb:34:in `some_method' */
SELECT COUNT(*) FROM `clients`

It can be useful for debugging of strange and slow queries,

Usage:
Just install this as a gem (already on gemcutter, so `gem install
sequel_marginalia` should just do the work)
Then mydatabase.extension :sequel_marginalia

That's all.

It is my very first public gem, so I'll kindly appreciate any amount of
critics.

Thanks.

V.

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to