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

use bson instead of json in StoredDict #120

Merged
merged 2 commits into from
May 28, 2021
Merged

use bson instead of json in StoredDict #120

merged 2 commits into from
May 28, 2021

Conversation

ldruschk
Copy link
Member

most notably bytes is not JSON-serializable. Since the NoSQLDict/MongoDB uses bson internally, this way, the behavior of StoredDict and NoSQLDict should be identical. Note that the value must be stored in a dict, since bson does not allow serializing values which are not a mapping type.

@ldruschk ldruschk requested a review from domenukk May 27, 2021 19:12
Copy link
Member

@domenukk domenukk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool stuff

@ldruschk
Copy link
Member Author

ldruschk commented May 27, 2021 via email

@ldruschk ldruschk merged commit 654aff0 into main May 28, 2021
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