aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2011-09-20 10:50:08 -0700
committerXavier Noria <fxn@hashref.com>2011-11-05 18:30:19 -0700
commite7b7b4412380e7ce2d8e6ae402cb7fe02d7666b8 (patch)
tree00d94c919f9a3e4e4551a5a47e5a6d048b45335b /activerecord/CHANGELOG.md
parent89d7372dac7357134af6877ded159b16a8d3bc9b (diff)
downloadrails-e7b7b4412380e7ce2d8e6ae402cb7fe02d7666b8.tar.gz
rails-e7b7b4412380e7ce2d8e6ae402cb7fe02d7666b8.tar.bz2
rails-e7b7b4412380e7ce2d8e6ae402cb7fe02d7666b8.zip
implements AR::Relation#explain
This is a first implementation, EXPLAIN is highly dependent on the database and I have made some compromises. On one hand, the method allows you to run the most common EXPLAIN and that's it. If you want EXPLAIN ANALYZE in PostgreSQL you need to do it by hand. On the other hand, I've tried to construct a string as close as possible to the ones built by the respective shells. The rationale is that IMO the user should feel at home with the output and recognize it at first sight. Per database. I don't know whether this implementation is going to work well. Let's see whether people like it.
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 6b1cf4c841..a79f4df570 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,5 +1,7 @@
## Rails 3.2.0 (unreleased) ##
+* Implemented ActiveRecord::Relation#explain. *fxn*
+
* Add ActiveRecord::Relation#uniq for generating unique queries.
Before: