Progress bar for Ruby Sequel datasets
I’m hacking away at a tool to give me better JMeter results, and I needed to see progress as I iterated through the data I’d imported into MySQL. The progress bar described in my earlier post can be made to work with a simple addition:
class Sequel::Dataset
alias :size :count
end
This adds the necessary ‘size’ method to Sequel’s dataset and everything’s happy.