{"id":553,"date":"2010-09-28T11:55:23","date_gmt":"2010-09-28T01:55:23","guid":{"rendered":"http:\/\/www.software-testing.com.au\/blog\/?p=553"},"modified":"2011-01-28T11:31:16","modified_gmt":"2011-01-28T01:31:16","slug":"progress-bar-for-ruby-sequel-datasets","status":"publish","type":"post","link":"http:\/\/www.software-testing.com.au\/blog\/2010\/09\/28\/progress-bar-for-ruby-sequel-datasets\/","title":{"rendered":"Progress bar for Ruby Sequel datasets"},"content":{"rendered":"<p>I&#8217;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&#8217;d imported into MySQL.\u00a0 The progress bar described in <a href=\"http:\/\/www.software-testing.com.au\/blog\/2010\/01\/13\/text-based-progress-bar-in-ruby-for-command-line-programs\/\">my earlier post<\/a> can be made to work with a simple addition:<\/p>\n<p><code>class Sequel::Dataset<br \/>\n&nbsp;&nbsp;alias :size :count<br \/>\nend<\/code><\/p>\n<p>This adds the necessary &#8216;size&#8217; method to Sequel&#8217;s dataset and everything&#8217;s happy.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;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&#8217;d imported into MySQL.\u00a0 The progress bar described in my earlier post can be made to work with a simple addition: class Sequel::Dataset &nbsp;&nbsp;alias :size :count end This adds the necessary [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[107,27,34],"tags":[],"class_list":["post-553","post","type-post","status-publish","format-standard","hentry","category-performance-testing","category-ruby","category-test-automation"],"_links":{"self":[{"href":"http:\/\/www.software-testing.com.au\/blog\/wp-json\/wp\/v2\/posts\/553","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.software-testing.com.au\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.software-testing.com.au\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.software-testing.com.au\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.software-testing.com.au\/blog\/wp-json\/wp\/v2\/comments?post=553"}],"version-history":[{"count":6,"href":"http:\/\/www.software-testing.com.au\/blog\/wp-json\/wp\/v2\/posts\/553\/revisions"}],"predecessor-version":[{"id":586,"href":"http:\/\/www.software-testing.com.au\/blog\/wp-json\/wp\/v2\/posts\/553\/revisions\/586"}],"wp:attachment":[{"href":"http:\/\/www.software-testing.com.au\/blog\/wp-json\/wp\/v2\/media?parent=553"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.software-testing.com.au\/blog\/wp-json\/wp\/v2\/categories?post=553"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.software-testing.com.au\/blog\/wp-json\/wp\/v2\/tags?post=553"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}