lib/rbbt/persist/tsv/sharder.rb in rbbt-util-5.14.3 vs lib/rbbt/persist/tsv/sharder.rb in rbbt-util-5.14.4

- old
+ new

@@ -122,9 +122,16 @@ def read? ! write? end + def range(*args) + databases.values.inject([]) do |acc,database| + acc.concat database.range(*args) if TokyoCabinet::BDB === database + acc + end + end + def each databases.values.each do |database| database.each do |k,v| yield k, v end