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

Improve the Rw*Iter::put_current methods to be less restrictive #222

Merged
merged 5 commits into from
Nov 23, 2023

Conversation

Kerollmops
Copy link
Member

@Kerollmops Kerollmops commented Nov 22, 2023

In this PR, we rename the Rw*Iter::put_current_with_flags functions into Rw*Iter::put_current_with_options and make it possible to change the data codec simultaneously. This way, we do not introduce a new put_current function that cannot accept LMDB PutFlags.

We also modify the Rw*Iter::put_current_reserved into a Rw*Iter::put_current_reserved_with_flags to make it possible to specify other flags at the same time as using the "reserved" API interface.

@Kerollmops Kerollmops force-pushed the put-current-with-data-codec branch from 2824585 to 512cf2b Compare November 23, 2023 08:45
@Kerollmops Kerollmops changed the title Introduce new methods on writer cursors to change the data codec Improve the Rw*Iter::put_current methods to be less restrictive Nov 23, 2023
@Kerollmops Kerollmops requested a review from irevoire November 23, 2023 09:27
@Kerollmops Kerollmops force-pushed the put-current-with-data-codec branch from 388b8ed to 0d93f97 Compare November 23, 2023 09:30
@Kerollmops Kerollmops marked this pull request as ready for review November 23, 2023 09:30
@Kerollmops Kerollmops added this to the v0.20.0 milestone Nov 23, 2023
@Kerollmops Kerollmops added the enhancement New feature or request label Nov 23, 2023
@Kerollmops Kerollmops force-pushed the put-current-with-data-codec branch from 0d93f97 to d362eb0 Compare November 23, 2023 09:53
@Kerollmops Kerollmops enabled auto-merge November 23, 2023 09:57
@Kerollmops Kerollmops disabled auto-merge November 23, 2023 09:58
@Kerollmops Kerollmops force-pushed the put-current-with-data-codec branch from d362eb0 to 44ebdd0 Compare November 23, 2023 09:58
@Kerollmops Kerollmops merged commit 321b0d4 into main Nov 23, 2023
8 checks passed
@Kerollmops Kerollmops deleted the put-current-with-data-codec branch November 23, 2023 10:01
@Kerollmops Kerollmops added the breaking A change that is breaking the semver label Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking A change that is breaking the semver enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants