看到 lsp-mode 添加了 sqls 的 支持 于是试用了下。
我定义了一个项目工作区配置文件: workspace/configuration
:
#+begin_src json :file "postgresql_test/.sqls/config.json"
{
"sqls": {
"connections": [
{
"dataSourceName": "host=127.0.0.1 port=5432 user=postgres password=PASSWORD dbname=test sslmode=disable",
"driver": "postgresql"
}
]
}
}
#+end_src
但是仍然无法补全PostgreSQL。
- Emacs version: 28.0.50
- lsp-mode version:
20200905.1835
确定 PostgreSQL在psql 和 pgcli 之类的终端client下都是正常连接和补全的。