Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return an enumerator when calling each_row_streaming without a block #224

Merged

Conversation

dlanner
Copy link

@dlanner dlanner commented Jun 9, 2015

Similar to PR #219 ("Return an enumerator when calling '#each' without a block"), this pull request allows Roo::Excelx#each_row_streaming to return an Enumerator when it's called without a block.

This can be helpful when streaming in very large spreadsheets in batches/slices (e.g. for bulk SQL queries), like this:

worksheet.each_row_streaming.each_slice(100) do |rows|
  batch_process rows
end

simonoff added a commit that referenced this pull request Jun 10, 2015
…streaming

Return an enumerator when calling each_row_streaming without a block
@simonoff simonoff merged commit 8fabd03 into roo-rb:master Jun 10, 2015
@dlanner dlanner deleted the return_enumerator_from_each_row_streaming branch June 10, 2015 16:41
@md5
Copy link

md5 commented Jul 6, 2015

I'd love to see this in a release 👍

md5 added a commit to thecartercenter/nemo that referenced this pull request Jul 6, 2015
@stevendaniels
Copy link
Contributor

Released Roo 2.1.0.

@md5
Copy link

md5 commented Jul 20, 2015

🤘

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants