提交 067eb6ba 编写于 作者: S serge-rider

#2389 CLI: reopen existing connection


Former-commit-id: 6d4213b7
上级 faee688d
......@@ -90,7 +90,7 @@ public class DBeaverInstanceServer implements IInstanceController {
connectionSpec,
instanceConParameters,
false,
true);
instanceConParameters.createNewConnection);
if (dataSource == null) {
return;
......@@ -199,7 +199,7 @@ public class DBeaverInstanceServer implements IInstanceController {
}
private static class InstanceConnectionParameters implements GeneralUtils.IParameterHandler {
boolean makeConnect = true, openConsole = false;
boolean makeConnect = true, openConsole = false, createNewConnection = true;
@Override
public boolean setParameter(String name, String value) {
......@@ -210,6 +210,9 @@ public class DBeaverInstanceServer implements IInstanceController {
case "openConsole":
openConsole = CommonUtils.toBoolean(value);
return true;
case "create":
createNewConnection = CommonUtils.toBoolean(value);
return true;
default:
return false;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册