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

Run without a database connection #39

Closed
raxod502 opened this issue Jan 18, 2021 · 3 comments
Closed

Run without a database connection #39

raxod502 opened this issue Jan 18, 2021 · 3 comments

Comments

@raxod502
Copy link

raxod502 commented Jan 18, 2021

Is your feature request related to a problem? Please describe.
I would like to use this language server to provide generic SQL autocompletion in an environment where I cannot guarantee the existence of a live database instance.

Describe the solution you'd like
It would be great if not having a configuration file meant that the language server would simply autocomplete generic SQL keywords. What currently happens is that the language server refuses to serve any completions, with the following error message:

Error: database cache not found

I believe this used to be the behavior of sqls, but it changed some releases ago.

@lighttiger2505
Copy link
Collaborator

In order to get the most out of sqls, it is ideal to start sqls with the correct configuration to get information about the DB schema. However, it is not desirable to lose all functions or get unnecessary error messages just because you cannot connect to the DB. This was a lack of consideration on my part.

I will fix it so that some of the functions of sqls can be used even if the DB cannot be connected.

@lighttiger2505
Copy link
Collaborator

64b3884

With this change, sqls now works with keyword completion even without a DB connection.

Also, there is still room for improvement in the keyword completion, and we plan to improve it in the future.

@raxod502
Copy link
Author

raxod502 commented Feb 7, 2021

Yay, thanks so much!

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