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-537 Aggregation, runCommand, and index management examples #508

Merged
merged 5 commits into from Nov 8, 2021

Conversation

abr-egn
Copy link
Contributor

@abr-egn abr-egn commented Nov 3, 2021

No description provided.

use crate::{error::Result, Database};

pub(crate) async fn populate(db: &Database) -> Result<()> {
fn iso_date(text: &str) -> bson::DateTime {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we update this to return a result rather than unwrapping? Also, we should consider waiting til RUST-977 is merged so that we can use the method implemented there rather than going through chrono.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated to use parse_rfc3339_str.

src/test/documentation_examples/mod.rs Outdated Show resolved Hide resolved
src/test/documentation_examples/mod.rs Outdated Show resolved Hide resolved
@patrickfreed
Copy link
Contributor

Oh it looks like lint broke with the latest changes, so once thats fixed LGTM (no need for me to review again).

@abr-egn abr-egn force-pushed the RUST-537/agg-run-index-examples branch from c953c47 to d908104 Compare November 8, 2021 19:45
@abr-egn abr-egn force-pushed the RUST-537/agg-run-index-examples branch from d908104 to c1bae79 Compare November 8, 2021 20:04
@abr-egn abr-egn merged commit 492dbb1 into mongodb:master Nov 8, 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.

None yet

3 participants