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

refactor(connection): move listDatabases implementation to node-mongodb-native driver #14515

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

vkarpov15
Copy link
Collaborator

Re: #14506
Re: #9048

Summary

As a general rule we should move any connection helper that isn't just transparently calling this.db.functionName() to node-mongodb-native driver. listDatabases() is close, but the extra admin() call makes it violate this rule.

Also refactored out the this.readyState === STATES.connecting check into a helper so we aren't copy/pasting that in every helper.

Examples

@vkarpov15 vkarpov15 merged commit 964fa85 into 8.4 Apr 10, 2024
33 of 34 checks passed
@hasezoey hasezoey deleted the vkarpov15/list-databases-fix branch April 11, 2024 10:12
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