foundationdb-rs icon indicating copy to clipboard operation
foundationdb-rs copied to clipboard

Implement clear-all and get-all

Open tirkarthi opened this issue 6 years ago • 3 comments

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.

tirkarthi avatar May 10 '18 08:05 tirkarthi

Would you want to submit a PR?

bluejekyll avatar May 10 '18 17:05 bluejekyll

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

tirkarthi avatar May 10 '18 17:05 tirkarthi

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

timmarinin avatar Jun 21 '18 20:06 timmarinin