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

Added some trivial key/value update operations #145

Merged
merged 1 commit into from
Aug 7, 2017

Conversation

pjrule
Copy link
Contributor

@pjrule pjrule commented Aug 6, 2017

I found the tinydb.operations functions to be a bit bare—there are cases where one might want to change a key by more than ±1, which is all the existing increment() and decrement() functions do. :) I also added a set() function to directly update keys.

@msiemens msiemens merged commit 551f237 into msiemens:master Aug 7, 2017
@msiemens
Copy link
Owner

msiemens commented Aug 7, 2017

That makes sense, merged :)

@msiemens
Copy link
Owner

msiemens commented Aug 8, 2017

BTW: The new update operations are included in the latest release of TinyDB I just published (v3.4.0)! Thanks again for the contribution 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants