Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
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