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

2 participants
@pjrule
Contributor

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

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
coverage/coveralls Coverage increased (+0.007%) to 99.756%
Details
@msiemens

This comment has been minimized.

Show comment
Hide comment
@msiemens

msiemens Aug 7, 2017

Owner

That makes sense, merged :)

Owner

msiemens commented Aug 7, 2017

That makes sense, merged :)

@msiemens

This comment has been minimized.

Show comment
Hide comment
@msiemens

msiemens Aug 8, 2017

Owner

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

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