public
Description: StrokeDB is an embeddable distributed document database written in Ruby
Homepage: http://strokedb.com/
Clone URL: git://github.com/yrashk/strokedb.git
some intermediate stuff
oleganza (author)
Fri May 23 15:43:46 -0700 2008
commit  0d0bb33923b34d800a7f45e86a32812173df14da
tree    a13ba350af4e5c908f5f0884230109262cd898d5
parent  aa3f883572c09d34c8a740fb4e3dd215169b3eeb
...
1
2
3
 
4
5
6
 
 
7
8
9
...
1
2
 
3
4
 
 
5
6
7
8
9
0
@@ -1,9 +1,9 @@
0
 module StrokeDB
0
   
0
-  ByMetas = View.new "strokedb_all_docs_by_metas" do |view|
0
+  ByMetas = View.named "strokedb_all_docs_by_metas" do |view|
0
     def view.map(uuid, doc)
0
-      doc.metas.each do |meta|
0
-        
0
+      doc.metas.map do |meta|
0
+        [meta, doc]
0
       end
0
     end
0
   end

Comments