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

Implement clear-all and get-all #87

Open
tirkarthi opened this issue May 10, 2018 · 3 comments
Open

Implement clear-all and get-all #87

tirkarthi opened this issue May 10, 2018 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@tirkarthi
Copy link
Contributor

clear-all can be implemented with empty byte-array as begin and 255 as the end parameter. This can be helpful where we want to wipe all the keys similar to FLUSHALL in Redis. Similar thing can be done to implement get-all using get-range to return all the keys in the database.

Reference: https://forums.foundationdb.org/t/how-to-clear-all-keys-in-foundationdb-using-java/351/2

This is not implemented as part of any official API but I thought it will be a handy wrapper. Feel free to close this if it's irrelevant.

@bluejekyll
Copy link
Collaborator

Would you want to submit a PR?

@tirkarthi
Copy link
Contributor Author

Sorry, I am not familiar enough with rust to submit a PR.

@timmarinin
Copy link

@bluejekyll: I want to experiment with FoundationDB, so I'll try to implement this.

@Speedy37 Speedy37 added enhancement New feature or request good first issue Good for newcomers labels Nov 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants