mafintosh / hyperdb

Distributed scalable database
MIT License
752 stars 75 forks source link

Support for putting/getting null values #127

Closed andrewosh closed 6 years ago

andrewosh commented 6 years ago

With the change in https://github.com/mafintosh/hyperdb/pull/122, deletes are no longer represented by a null value, meaning nodes can have arbitrary values and still be considered deletions.

This PR makes null an acceptable value for put/get.

Summary of changes:

  1. Added options to put, so that you can mark a given put as a delete (del calls put under the hood).
  2. Added a test for putting/getting a non-deleted node with a null value.
andrewosh commented 6 years ago

Cool! Merging

mafintosh commented 6 years ago

3.0.2