Kouhei Sutou
null+****@clear*****
Sun Dec 28 21:48:56 JST 2014
Kouhei Sutou 2014-12-28 21:48:56 +0900 (Sun, 28 Dec 2014) New Revision: 0eaccb8f4b7e814e3787d469df7ac948af149bd7 https://github.com/groonga/groonga/commit/0eaccb8f4b7e814e3787d469df7ac948af149bd7 Message: mrb: Database#each iterates by ID Modified files: lib/mrb/scripts/database.rb Modified: lib/mrb/scripts/database.rb (+4 -1) =================================================================== --- lib/mrb/scripts/database.rb 2014-12-28 21:48:34 +0900 (f6942a4) +++ lib/mrb/scripts/database.rb 2014-12-28 21:48:56 +0900 (1e7e3e4) @@ -2,7 +2,10 @@ module Groonga class Database def each context = Context.instance - cursor = TableCursor.open(self) + flags = + TableCursorFlags::ASCENDING | + TableCursorFlags::BY_ID + cursor = TableCursor.open(self, :flags => flags) begin cursor.each do |id| object = context[id]; -------------- next part -------------- HTML����������������������������... 下載