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

feature-request: Completion from multiple MySQL databases #241

Open
ss-raicangu opened this issue Feb 15, 2024 · 0 comments
Open

feature-request: Completion from multiple MySQL databases #241

ss-raicangu opened this issue Feb 15, 2024 · 0 comments

Comments

@ss-raicangu
Copy link

Description

If the MySQL configuration has a multi-database setup, sql-language-server seems to only complete tables and fields from one of the databases at a time. For example, in a query like such.

SELECT *
FROM db1.star
JOIN db2.planet
  ON star.coordinate BETWEEN planet.x AND planet.y;

Possible code location:

database: this.settings.database || '',

Finally, supporting multiple databases probably doesn't need to be specific to MySQL but made a specific request to start 🙂 .

Thanks in advance for considering this request 🙂 .

Workaround

In Neovim: As per README: Switch database connection, mapping the workspace/executeCommand method to call switchDatabaseConnection works fine when completing one database at a time.

References

Following issues are possibly related.

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