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-1048 add default_database api for client #488
Conversation
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.
Thanks for the PR! I have a few minor suggestions and one open question for the team, but otherwise it looks good!
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! (pending green CI run).
Thanks for your contribution!
is there any way to look into why CI failed? |
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 mod a few typo fixes!
It looks like The other failures look to be some unrelated known flaky tests, so nothing to worry about there. |
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! (modulo typo / rustfmt fixes)
Ok, I've fix typo and make a rebase, it should be formatted.. |
Thanks again for your contribution @WindSoilder! |
closes: #475
Regarding to this:
Personally, I think make
default_database(&self)
returned anOption<Database>
is easiler to use. And the behavior is more matches for the function name.If user want to get default database name, we can get it from
ClientOptions.default_database
, or using something likeclient.default_database().unwrap().name()
.Maybe something is missing, any review suggestion is appreciated :-)