DBeaver:如何为我的用户预配置连接?

DBeaver: how to preconfigure connections for my users?

我正在尝试为我的用户预先配置一些连接。 documentation 明确表示可以:

DBeaver can load multiple connection files. Any files in project folder matching .dbeaver/data-sources*.json pattern will be loaded on startup. So you can create a file, say, .dbeaver/data-sources-2.json in the project folder and DBeaver will see it.

但是当我在第一次启动DBeaver之前复制一个文件名data-sources-padrao.json到路径%USERPROFILE%\AppData\Roaming\DBeaverData\workspace6\General\.dbeaver\时,没有显示连接并且文件重命名为data-sources-padrao.json.bak。如果我在第一次启动 DBeaver 后复制它,该文件将被忽略。

如何在 DBeaver 中预先配置一堆连接?

如果用户已经安装了一个可用的安装,我想添加新连接而不打扰旧连接。如果是全新安装,用户将打开 DBeaver,它会显示所有已配置的连接。

哎呀,我真傻。我的 data-sources-padrao.json 格式不正确,被忽略了。

修复了“{”和“}”,一切正常。我会把问题留在这里,也许对某人有用。

DBeaver 确实将 conf 目录中名为 data-sources*.json 的每个文件视为一个连接文件,并将显示其中的所有连接。