Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: add database exploring for mongodb#268

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
entropitor wants to merge1 commit intokristijanhusak:master
base:master
Choose a base branch
Loading
fromentropitor:master

Conversation

@entropitor
Copy link

Fixes#104

Copy link
Owner

@kristijanhusakkristijanhusak left a 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, and sorry for the late review!

Generally looks good, but we should consider handling connection strings that already have a db name inside, and show results differently.

\'requires_stdin':v:true,
\}

lets:mongodb_dbs_query='"\n" + db.adminCommand("listDatabases").databases.map(x => x.name).join("\n")'

Choose a reason for hiding this comment

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

We need to consider the case where the database name is defined in the url, for examplemongodb://localhost:27017/my_test_db.
In that situation, we should just show table names.
We already do similar thing for mysql/mariadbhere. We can convert that to a hash map and considermongodb andmongodb+srv as part of that.

I added this myself to see how it looks, and noticed that table names in drawer gotdb. prepended, likedb.users. We can probably solve that in theschemes_tables_query somehow.

@mosheavni
Copy link

any news with that?
It could greatly improve the dadbod-ui mongo experience.

brunomueller93 reacted with thumbs up emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@kristijanhusakkristijanhusakkristijanhusak requested changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

switch mongo db

3 participants

@entropitor@mosheavni@kristijanhusak

[8]ページ先頭

©2009-2025 Movatter.jp