You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2022/02/24 08:47:19 UTC

[shardingsphere] branch master updated: Add document for alter resource. (#15607)

This is an automated email from the ASF dual-hosted git repository.

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 219025c  Add document for alter resource. (#15607)
219025c is described below

commit 219025cbf28fc9332946afb1e4d3bca78b40dc42
Author: lanchengx <52...@users.noreply.github.com>
AuthorDate: Thu Feb 24 16:46:14 2022 +0800

    Add document for alter resource. (#15607)
---
 .../shardingsphere-proxy/distsql/syntax/rdl/resource-definition.cn.md    | 1 +
 .../shardingsphere-proxy/distsql/syntax/rdl/resource-definition.en.md    | 1 +
 2 files changed, 2 insertions(+)

diff --git a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/resource-definition.cn.md b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/resource-definition.cn.md
index 535b98e..7e8f7ee 100644
--- a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/resource-definition.cn.md
+++ b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/resource-definition.cn.md
@@ -30,6 +30,7 @@ poolProperty:
 - 重复的 `dataSourceName` 不允许被添加
 - 在同一 `dataSource` 的定义中,`simpleSource` 和 `urlSource` 语法不可混用
 - `poolProperty` 用于自定义连接池参数,`key` 必须和连接池参数名一致,`value` 支持 int 和 String 类型
+- `ALTER RESOURCE` 修改资源时不允许改变该资源关联的真实数据源
 - `ALTER RESOURCE` 修改资源时会发生连接池的切换,这个操作可能对进行中的业务造成影响,请谨慎使用
 - `DROP RESOURCE` 只会删除逻辑资源,不会删除真实的数据源
 - 被规则引用的资源将无法被删除
diff --git a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/resource-definition.en.md b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/resource-definition.en.md
index 24500d2..5ceb513 100644
--- a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/resource-definition.en.md
+++ b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/resource-definition.en.md
@@ -30,6 +30,7 @@ poolProperty:
 - Duplicate `dataSourceName` is not allowed to be added
 - In the definition of a `dataSource`, the syntax of `simpleSource` and `urlSource` cannot be mixed
 - `poolProperty` is used to customize connection pool properties, `key` must be the same as the connection pool property name, `value` supports int and String types
+- `ALTER RESOURCE` is not allowed to change the real data source associated with this resource
 - `ALTER RESOURCE` will switch the connection pool. This operation may affect the ongoing business, please use it with caution
 - `DROP RESOURCE` will only delete logical resources, not real data sources
 - Resources referenced by rules cannot be deleted