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、通过接口参数指定数据源名称参数,如下图:
+
+
+参数示例:
+```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代码提交入口下拉筛选需要提交的数据源,如下图:
+
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]