Level/community

Implement db#clear across the board

vweevers opened this issue · 6 comments

Background: Level/abstract-leveldown#24 (comment).

Phase 1: get it working

Phase 2: optimize

On the side

Very nice. I especially like the subleveldown feature, like emptying a bucket of stuff.

Relevant leveldown issue: Level/leveldown#9.

Ah, the level-concat-iterator dependency comes in handy for the default implementation of _clear :)

Ah, the level-concat-iterator dependency comes in handy for the default implementation of _clear :)

Good. Then we don't have to feel so bad about including it 😉

Ah, the level-concat-iterator dependency comes in handy for the default implementation of _clear :)

Scratch that. Would choke on many keys.

Because abstract-leveldown@6.1.0 now has a clear() method, I'm moving this issue to community to track overall progress.