mafintosh / hyperdb

Distributed scalable database
MIT License
753 stars 75 forks source link

add deletes option to iterator #148

Closed e-e-e closed 6 years ago

e-e-e commented 6 years ago

This pr adds the delete option, which is available in the get method, to the createReadStream and iterator methods.

My main motivation for this change is so that I can see all values that have been added to the database regardless of whether they still exist or not.

I need this functionality for hyperdb-stage so that I can easily merge staged deletions. This PR will fix this currently broken test - https://github.com/e-e-e/hyperdb-stage/blob/master/test/staged.test.js#L174-L184

e-e-e commented 6 years ago

@mafintosh looks like the tests are failing because of a stalled run on node 8. It does not actually look like a valid failure.

mafintosh commented 6 years ago

3.5.0