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

Atlas DB Support? #2

Open
dmnkf opened this issue Dec 9, 2022 · 2 comments
Open

Atlas DB Support? #2

dmnkf opened this issue Dec 9, 2022 · 2 comments

Comments

@dmnkf
Copy link

dmnkf commented Dec 9, 2022

Any possibility to connect to an atlas MongoDB?

https://cloud.mongodb.com/

The mongosh command would be: mongosh "mongodb+srv://cluster0.*******.mongodb.net/myFirstDatabase" --apiVersion 1 --username test"

If I try any variation of this I just get

Error executing Lua callback: Vim:E474: Unidentified byte: MongoshInvalidInputError: [COMMON-10001] Invalid URI: "cluster0.*******.mongodb.net/sample_training"
@jrop
Copy link
Owner

jrop commented Dec 13, 2022

I believe this relates to #1 as well: I'm considering changing how :Mongoconnect works: right now it is confusing and the options/combinations are not really documented well or very predictable. Just this morning, I was hung up using it for a little bit (and I wrote it!). I'm considering just changing it to pass its argument unaltered to mongosh.

The drawback is that this change would be backwards-incompatable. Thoughts? @DM1NIK

@dmnkf
Copy link
Author

dmnkf commented Dec 15, 2022

Perhaps it would be useful to have a more direct version of :Mongoconnect called :Directmongoconnect or have a tag like -D or --direct that does the same.

This way you wouldn't lose the backward compatibility.

Personally, I will not use this plugin for very long (at least right now), it is primarily for a specific module at my university which uses MongoDB, so I wouldn't be affected if there wouldn't any backward compatibility.

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

No branches or pull requests

2 participants