https://github.com/zverok/sequel_marginalia
Port of 37 signals marginalia for use with Sequel
https://github.com/zverok/sequel_marginalia
Last synced: about 1 year ago
JSON representation
Port of 37 signals marginalia for use with Sequel
- Host: GitHub
- URL: https://github.com/zverok/sequel_marginalia
- Owner: zverok
- Created: 2013-04-04T17:11:21.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-04-05T10:14:32.000Z (about 13 years ago)
- Last Synced: 2024-04-25T17:20:15.842Z (about 2 years ago)
- Language: Ruby
- Size: 121 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
sequel_marginalia
=================
Kind of port of 37signals' [marginalia](https://github.com/37signals/marginalia)
for use with [Sequel](http://sequel.rubyforge.org/index.html).
(It's rather port of an idea than code.)
It just adds comments about caller code to your Sequel SQL queries.
When used, produces SQL like this:
SELECT COUNT(*) FROM `clients`
/* lib/myapp/somefile.rb:40:in `some_method' */
## Usage
Install it is a gem.
Than just do
my_database.extension :marginalia
and it's here.
Being dead simple, should presumably work with and DB adapter, though
tested only with mysql2.