From 4a6822d5e416f2e687d32a14ff98c7b5c815369c Mon Sep 17 00:00:00 2001 From: Nick Kallen Date: Sun, 27 Apr 2008 18:11:36 -0700 Subject: results of a select query are a hash indexed by attribute rather than string --- doc/TODO | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'doc/TODO') 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? -- cgit v1.2.3