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

[QUESTION] How to query MySQL table instead of the whole server? #115

Open
Lakshamana opened this issue May 17, 2024 · 0 comments
Open

[QUESTION] How to query MySQL table instead of the whole server? #115

Lakshamana opened this issue May 17, 2024 · 0 comments

Comments

@Lakshamana
Copy link

Hello,

First, I'd like to praise this plugin which is really useful and is helping a lot in my workflow. Really loving it, nice plugin and you've been doing an awesome work!

I noticed that creating a connection for mysql doesn't allow selecting a single database, like Postgres. Instead, it will open the server itself and it may be causing cmp-dbee to lose database table completion, since it tends to prefix tables with the database name. So with this plugin I'm able to have completion only on Postgres tables. I didn't test cross-database completion for JOINs in Postgres.

I used vim-dadbod-completion for a while, and it wouldn't work for joining tables in different databases (tested in an MySQL server environment), JOINs would only get completion if they're running on tables in the same database you switched to. For nvim-dbee, since I couldn't even select a database directly but rather the server, even a simple select statement on a table would be a cross-database query, since we're starting for the server and not the database.

May be this is more of a cmp-dbee issue than nvim-dbee itself. Thoughts?

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

1 participant