This is an automated email from the ASF dual-hosted git repository.
panjuan 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 e5e699a Update docs. (#14388)
e5e699a is described below
commit e5e699a09144df3ec37cd31de54cd8240b5d63c6
Author: gin <[email protected]>
AuthorDate: Tue Dec 28 19:53:49 2021 +0800
Update docs. (#14388)
---
.../shardingsphere-jdbc/spring-namespace/rules/shadow.cn.md | 1 +
.../shardingsphere-jdbc/spring-namespace/rules/shadow.en.md | 1 +
.../shardingsphere-proxy/distsql/usage/shadow-rule.cn.md | 6 +++---
.../shardingsphere-proxy/distsql/usage/shadow-rule.en.md | 6 +++---
4 files changed, 8 insertions(+), 6 deletions(-)
diff --git
a/docs/document/content/user-manual/shardingsphere-jdbc/spring-namespace/rules/shadow.cn.md
b/docs/document/content/user-manual/shardingsphere-jdbc/spring-namespace/rules/shadow.cn.md
index bc55abd..88b0d94 100644
---
a/docs/document/content/user-manual/shardingsphere-jdbc/spring-namespace/rules/shadow.cn.md
+++
b/docs/document/content/user-manual/shardingsphere-jdbc/spring-namespace/rules/shadow.cn.md
@@ -25,6 +25,7 @@ weight = 5
| shadow-data-source-name | 属性 | 影子数据源名称 |
\<shadow:default-shadow-algorithm-name />
+
| *名称* | *类型* | *说明* |
| ----- | ------ | ------ |
| name | 属性 | 默认影子算法名称 |
diff --git
a/docs/document/content/user-manual/shardingsphere-jdbc/spring-namespace/rules/shadow.en.md
b/docs/document/content/user-manual/shardingsphere-jdbc/spring-namespace/rules/shadow.en.md
index a6ea26f..f2956c6 100644
---
a/docs/document/content/user-manual/shardingsphere-jdbc/spring-namespace/rules/shadow.en.md
+++
b/docs/document/content/user-manual/shardingsphere-jdbc/spring-namespace/rules/shadow.en.md
@@ -25,6 +25,7 @@ Namespace:
[http://shardingsphere.apache.org/schema/shardingsphere/shadow/shadow
| shadow-data-source-name | Attribute | Shadow data source name |
\<shadow:default-shadow-algorithm-name />
+
| *Name* | *Type* | *Description* |
| ----- | ------ | ------ |
| name | Attribute | Default shadow algorithm name |
diff --git
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/usage/shadow-rule.cn.md
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/usage/shadow-rule.cn.md
index aa75f4c..f4e29e1 100644
---
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/usage/shadow-rule.cn.md
+++
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/usage/shadow-rule.cn.md
@@ -35,8 +35,8 @@ PASSWORD=root
CREATE SHADOW RULE group_0(
SOURCE=ds_0,
SHADOW=ds_1,
-t_order((simple_note_algorithm, TYPE(NAME=SIMPLE_NOTE,
PROPERTIES("shadow"="true", foo="bar"))),(TYPE(NAME=COLUMN_REGEX_MATCH,
PROPERTIES("operation"="insert","column"="user_id", "regex"='[1]')))),
-t_order_item((TYPE(NAME=SIMPLE_NOTE, PROPERTIES("shadow"="true",
"foo"="bar")))));
+t_order((simple_hint_algorithm, TYPE(NAME=SIMPLE_HINT,
PROPERTIES("foo"="bar"))),(TYPE(NAME=REGEX_MATCH,
PROPERTIES("operation"="insert","column"="user_id", "regex"='[1]')))),
+t_order_item((TYPE(NAME=SIMPLE_HINT, PROPERTIES("foo"="bar")))));
```
- 修改影子库压测规则
@@ -45,7 +45,7 @@ t_order_item((TYPE(NAME=SIMPLE_NOTE,
PROPERTIES("shadow"="true", "foo"="bar"))))
ALTER SHADOW RULE group_0(
SOURCE=ds_0,
SHADOW=ds_2,
-t_order_item((TYPE(NAME=SIMPLE_NOTE, PROPERTIES("shadow"="true",
"foo"="bar")))));
+t_order_item((TYPE(NAME=SIMPLE_HINT, PROPERTIES("foo"="bar")))));
```
- 删除影子库压测规则
diff --git
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/usage/shadow-rule.en.md
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/usage/shadow-rule.en.md
index 9e35323..258ea4e 100644
---
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/usage/shadow-rule.en.md
+++
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/usage/shadow-rule.en.md
@@ -35,8 +35,8 @@ PASSWORD=root
CREATE SHADOW RULE group_0(
SOURCE=ds_0,
SHADOW=ds_1,
-t_order((simple_note_algorithm, TYPE(NAME=SIMPLE_NOTE,
PROPERTIES("shadow"="true", foo="bar"))),(TYPE(NAME=COLUMN_REGEX_MATCH,
PROPERTIES("operation"="insert","column"="user_id", "regex"='[1]')))),
-t_order_item((TYPE(NAME=SIMPLE_NOTE, PROPERTIES("shadow"="true",
"foo"="bar")))));
+t_order((simple_note_algorithm, TYPE(NAME=SIMPLE_HINT,
PROPERTIES("foo"="bar"))),(TYPE(NAME=REGEX_MATCH,
PROPERTIES("operation"="insert","column"="user_id", "regex"='[1]')))),
+t_order_item((TYPE(NAME=SIMPLE_HINT, PROPERTIES("foo"="bar")))));
```
- Alter shadow rule
@@ -45,7 +45,7 @@ t_order_item((TYPE(NAME=SIMPLE_NOTE,
PROPERTIES("shadow"="true", "foo"="bar"))))
ALTER SHADOW RULE group_0(
SOURCE=ds_0,
SHADOW=ds_2,
-t_order_item((TYPE(NAME=SIMPLE_NOTE, PROPERTIES("shadow"="true",
"foo"="bar")))));
+t_order_item((TYPE(NAME=SIMPLE_HINT, PROPERTIES("foo"="bar")))));
```
- Drop shadow rule