This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Wed Jun 10 04:35:18 -0700 2009 | |
| |
MIT-LICENSE | ||
| |
README.markdown | Fri Sep 11 18:20:50 -0700 2009 | |
| |
Rakefile | Fri Sep 11 18:15:53 -0700 2009 | |
| |
config/ | Sun Jun 14 01:36:42 -0700 2009 | |
| |
init.rb | Sun Jun 14 01:36:42 -0700 2009 | |
| |
lib/ | Fri Sep 11 18:15:53 -0700 2009 | |
| |
log/ | ||
| |
rails/ | Fri Sep 11 18:15:53 -0700 2009 | |
| |
spec/ | Fri Sep 11 18:20:50 -0700 2009 | |
| |
uninstall.rb |
README.markdown
sql_display
For when you want to display the SQL a query executes, but don't want to go into the log!
Usage Examples
sql takes the same options as find and will only show you the first query it runs.
count_sql takes the same options as count, same deal.
>> Post.sql
=> "SELECT * FROM \"posts\""
>> Post.sql(:order => "id DESC")
=> "SELECT * FROM \"posts\" ORDER id DESC"
>> Post.scoped({}).sql
=> "SELECT * FROM \"posts\""
>> Post.count_sql
=> "SELECT count(*) AS count_all FROM \"posts\""
>> Post.count_sql(:text)
=> "SELECT count(\"posts\".text) AS count_text FROM \"posts\""
Contributors
perplect








