aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorNick Kallen <nkallen@nick-kallens-computer-2.local>2008-04-27 18:11:36 -0700
committerNick Kallen <nkallen@nick-kallens-computer-2.local>2008-04-27 18:11:36 -0700
commit4a6822d5e416f2e687d32a14ff98c7b5c815369c (patch)
tree74288a02f1248bb486c8edee073533895d25f34c /doc
parent9567f8e4e87f95929f331a2d5eb35bce952eac86 (diff)
downloadrails-4a6822d5e416f2e687d32a14ff98c7b5c815369c.tar.gz
rails-4a6822d5e416f2e687d32a14ff98c7b5c815369c.tar.bz2
rails-4a6822d5e416f2e687d32a14ff98c7b5c815369c.zip
results of a select query are a hash indexed by attribute rather than string
Diffstat (limited to 'doc')
-rw-r--r--doc/TODO21
1 files changed, 15 insertions, 6 deletions
diff --git a/doc/TODO b/doc/TODO
index fc18af28b6..acd6ea7a1e 100644
--- a/doc/TODO
+++ b/doc/TODO
@@ -1,17 +1,25 @@
todo:
-- active record query adapter
+- lock
+ - SELECT suchandsuch FOR UPDATE
+- anonymous table names
+- rename select to where
+- and/or w/ predicates
- audit active record quoting
-- incorporate linq functionality/terminology
- - then_by (ordering)
- - reverse
- - any/all
- - where
- limit clauses with left outer joins ?
- see add_limited_ids_condition
- select_limited_ids_list
+- count queries
- extract adapters
+- arbitrary sql relationships
+ - consider this code from has_many:
+ # replace the SELECT clause with COUNT(*), preserving any hints within /* ... */
+ @reflection.options[:counter_sql] = @reflection.options[:finder_sql].sub(/SELECT (\/\*.*?\*\/ )?(.*)\bFROM\b/im) { "SELECT #{$1}COUNT(*) FROM" }
+ - can join with this as a subselect no problem right? it's' unclear what attributes it has, though.
- cache expiry on write
- rewrite of arecord querycache test in light of this
+- linq functionality
+ - reverse
+ - any/all
done:
- mock out database
@@ -66,6 +74,7 @@ done:
- test blank checks in relation.rb
- rename active_relation to arel
- fix complex joining cases:
+- active record query adapter
icebox:
- #bind in Attribute and Expression should be doing a descend?