Level / abstract-level

Abstract class for a lexicographically sorted key-value database.
MIT License
128 stars 8 forks source link

chainedBatch._put/_del #37

Closed ronag closed 2 years ago

ronag commented 2 years ago

As an implementer. How should I handle errors on _put/_del in the underlying batch implementation? Should I just throw or save the error and wait until the _write call and propagate though the callback?

vweevers commented 2 years ago

Throw. That's how invalid keys/values and open/closed states are handled too.