Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

clear() method #648

Closed
iddan opened this issue Apr 8, 2019 · 2 comments · Fixed by #669
Closed

clear() method #648

iddan opened this issue Apr 8, 2019 · 2 comments · Fixed by #669
Labels
enhancement New feature or request semver-minor New features that are backward compatible

Comments

@iddan
Copy link

iddan commented Apr 8, 2019

A DB method for removing all the keys and values. Currently doing it like:

db.createKeyStream().on("data", key => {
    db.del(key);
});
@vweevers
Copy link
Member

vweevers commented Apr 8, 2019

It's planned (https://github.com/Level/abstract-leveldown/issues/236, levelup would wrap this), we didn't get around to it yet.

@vweevers vweevers added enhancement New feature or request semver-minor New features that are backward compatible labels Apr 25, 2019
@vweevers vweevers added the blocked Unable to proceed with this issue or pull request label Apr 25, 2019
@vweevers vweevers removed the blocked Unable to proceed with this issue or pull request label Aug 18, 2019
@vweevers
Copy link
Member

vweevers commented Sep 8, 2019

Released in 4.2.0 - please see the caveats in the readme.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request semver-minor New features that are backward compatible
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants