Skip to content

feature-request: Completion from multiple MySQL databasesΒ #241

@ss-raicangu

Description

@ss-raicangu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions