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 the drain / secondary drain #247

Open
8 tasks
vincent-herlemont opened this issue Oct 6, 2024 · 0 comments
Open
8 tasks

Implement the drain / secondary drain #247

vincent-herlemont opened this issue Oct 6, 2024 · 0 comments
Labels
help wanted Open issue for anyone who wants to work on it.
Milestone

Comments

@vincent-herlemont
Copy link
Owner

drain() is a method that allows removing elements while returning them via an iterator.

It needs to be implemented for primary and secondary, with scan queries such as all, range, and start_with. Inspiration can be taken from the scan implementation in src/transaction/query/scan/mod.rs.

NOTE: There is already an implementation for primary, but it should be looked at to see if improvements can be made.

TODO

  • Improve primary drain
    • Implement primary drain all
    • Implement primary drain range
    • Implement primary drain start_with
  • Implement secondary drain.
    • Implement secondary drain all
    • Implement secondary drain range
    • Implement secondary drain start_with
@vincent-herlemont vincent-herlemont added the help wanted Open issue for anyone who wants to work on it. label Oct 6, 2024
@vincent-herlemont vincent-herlemont added this to the 0.9.0 milestone Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Open issue for anyone who wants to work on it.
Projects
None yet
Development

No branches or pull requests

1 participant