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

RUST-1411 Add create_encrypted_collection helper #853

Merged
merged 10 commits into from
Apr 17, 2023

Conversation

abr-egn
Copy link
Contributor

@abr-egn abr-egn commented Apr 13, 2023

No description provided.

@@ -259,7 +259,7 @@ impl Error {

/// Gets the code from this error for performing SDAM updates, if applicable.
/// Any codes contained in WriteErrors are ignored.
pub(crate) fn code(&self) -> Option<i32> {
pub(crate) fn sdam_code(&self) -> Option<i32> {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not for the first time, I got a bit confused when implementing the prose tests because this doesn't return a code for write errors, so I renamed this to be more clear it's got sdam-specific logic and added an unrestricted version.

@abr-egn abr-egn marked this pull request as ready for review April 14, 2023 15:33
@abr-egn abr-egn requested a review from isabelatkinson April 14, 2023 15:33
@abr-egn abr-egn force-pushed the RUST-1411/create-encrypted-collection branch from 89ee7e5 to 9ee3e7a Compare April 17, 2023 17:01
@abr-egn abr-egn merged commit f80171e into mongodb:main Apr 17, 2023
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