Skip to content

feat: accept async iterators into blockstore.putMany #209

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

Merged
merged 4 commits into from
Sep 20, 2019

Conversation

achingbrain
Copy link
Member

Allows streaming into the blockstore. The blockstore currently uses the batch functionality of the underlying datatore, so we might need to change interface-datastore next to add streaming primitives but this at least allows streaming this far down the stack.

BREAKING CHANGE: you must pass an iterable or async iterable to putMany - this should be relatively painless as the current API is to pass an array which is iterable, but it does change the API and rules is rules.

Allows streaming into the blockstore. The blockstore currently uses
the batch functionality of the underlying datatore, so we might need
to change `interface-datastore` next to add streaming primitives but
this at least allows streaming this far down the stack.

BREAKING CHANGE: you must pass an iterable or async iterable to putMany
- this should be relatively painless as the current API is to pass an
array which is iterable, but it does change the API.
chore: add node 12 to CI
Copy link
Contributor

@jacobheun jacobheun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jacobheun jacobheun merged commit 9c06303 into master Sep 20, 2019
@jacobheun jacobheun deleted the blockstore-accept-async-iterator branch September 20, 2019 11:26
@jacobheun
Copy link
Contributor

Released in v0.28.0

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.

3 participants