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

Wrap deprecated and unsupported types rather than calling error. #98

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

mgm7734
Copy link
Contributor

@mgm7734 mgm7734 commented May 28, 2022

I have an old database containing some deprecated undefined values that break queries. I do not want to modify the data.

I considered adding support for BSON_TYPE_UNDEFINED but this is a simpler, more general solution. It gives users the option of converting BSONUnsupported(BSON_TYPE_UNDEFINED) to missing or nothing.

It will allow BSON_TYPE_REGEX values (which are unsupported, not deprecated) to not break queries, though the data is lost. It would be nice to be able to use Julia regex in queries...

@codecov
Copy link

codecov bot commented May 28, 2022

Codecov Report

Merging #98 (de4cb5f) into master (81cf2c5) will decrease coverage by 0.04%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master      #98      +/-   ##
==========================================
- Coverage   81.28%   81.23%   -0.05%     
==========================================
  Files          11       11              
  Lines        1651     1652       +1     
==========================================
  Hits         1342     1342              
- Misses        309      310       +1     
Impacted Files Coverage Δ
src/bson.jl 90.19% <0.00%> (-0.20%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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.

1 participant