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

Improve batch execute #52

Merged
merged 5 commits into from
Dec 25, 2023
Merged

Improve batch execute #52

merged 5 commits into from
Dec 25, 2023

Conversation

noteflakes
Copy link
Contributor

This PR improves the batch execute API (fix #47)

  • Rename #execute_multi to #batch_execute. #execute_multi is still available but will
    be deprecated eventually.
  • Add support for batch query execution with any enumerable. This can be done with any object
    that responds to #each.
  • Add support for batch query execution with a block, or by calling with a callable.

The method `#execute_multi` is still available as alias to `#batch_execute`. Eventually it will be deprecated.
`#batch_execute` can now be called with any object that implements `#each` (i.e. Enumerable and Enumerator objects).
@noteflakes noteflakes merged commit f5a62a3 into main Dec 25, 2023
24 checks passed
@noteflakes noteflakes deleted the batch_execute branch December 25, 2023 21:36
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.

Add ability to batch execute queries from an Enumerable
1 participant