You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by GitBox <gi...@apache.org> on 2022/08/22 14:03:51 UTC

[GitHub] [incubator-linkis-website] casionone commented on a diff in pull request #489: 多数据源文档说明完善

casionone commented on code in PR #489:
URL: https://github.com/apache/incubator-linkis-website/pull/489#discussion_r951481637


##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/engine-usage/jdbc.md:
##########
@@ -132,6 +132,46 @@ Linkis 1.2.0后提供了数据源管理功能,我们可以在控制台管理
 
 图3-4 数据源连接测试
 
+数据源添加完成之后,就可以使用JDBC引擎的多数据源切换功能,有两种方式:
+1、通过接口参数指定数据源名称参数,如下图:
+![](/Images-zh/EngineUsage/muti-data-source.png)
+
+参数示例:
+```json
+{
+    "executionContent": {"code": "show databases", "runType":  "jdbc"},
+    "params": {"variable": {}, "configuration": {"startup":{}, 
+    "runtime": 
+    	{ 
+    		"dataSources": {"wds.linkis.engine.runtime.datasource": "test_mysql"
+    	}
+    }}},
+    "source":  {"scriptPath": ""},
+    "labels": {
+        "engineType": "jdbc-4",
+        "userCreator": "linkis-IDE"
+    }
+}
+```
+
+参数:wds.linkis.engine.runtime.datasource为固定名称的配置,不要随意修改名称定义
+
+2、通过DSS的Scripts代码提交入口下拉筛选需要提交的数据源,如下图:
+![](/Images-zh/EngineUsage/muti-data-source-usage.png)

Review Comment:
   Added description of supported versions



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org