-
Notifications
You must be signed in to change notification settings - Fork 137
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
RUST-2017 Add method to construct an ObjectId
from its parts
#492
Conversation
Can I ask about the use case for this? Synthesizing ObjectIds seems likely to run into unexpected collisions or other subtle issues. |
The use case is that I want to find documents in a specific time interval. The collection doesn't have any indexes, however the auto-created
This is already possible using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes look good, can we add a simple test for this in src/tests/modules/oid.rs
?
Co-authored-by: Isabel Atkinson <[email protected]>
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks for your contribution!
ObjectId
from its parts
No description provided.