Skip to content

Commit

Permalink
en, zh: address version support (#70)
Browse files Browse the repository at this point in the history
* address version explan

* update version

* update en version
  • Loading branch information
lichunzhu committed May 12, 2020
1 parent 9fb2dfc commit 3dbc09e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions en/feature-overview.md
Expand Up @@ -10,8 +10,8 @@ This document describes the data replication features provided by the Data Migra

For different DM versions, pay attention to the different match rules of schema or table names in the table routing, black & white lists, and binlog event filter features:

+ For DM v1.0.4 or later versions, all the above features support the [wildcard match](https://en.wikipedia.org/wiki/Glob_(programming)#Syntax). For all versions of DM, note that there can be **only one** `*` in the wildcard expression, and `*` **must be placed at the end**.
+ For DM versions earlier than v1.0.4, table routing and binlog event filter support the wildcard but do not support the `[...]` and `[!...]` expressions. The black & white lists only supports the regular expression.
+ For DM v1.0.5 or later versions, all the above features support the [wildcard match](https://en.wikipedia.org/wiki/Glob_(programming)#Syntax). For all versions of DM, note that there can be **only one** `*` in the wildcard expression, and `*` **must be placed at the end**.
+ For DM versions earlier than v1.0.5, table routing and binlog event filter support the wildcard but do not support the `[...]` and `[!...]` expressions. The black & white lists only supports the regular expression.

It is recommended that you use the wildcard for matching in simple scenarios.

Expand Down Expand Up @@ -110,7 +110,7 @@ The black and white lists filtering rule of the upstream database instance table
black-white-list:
rule-1:
do-dbs: ["test*"] # Starting with characters other than "~" indicates that it is a wildcard;
# v1.0.4 or later versions support the regular expression rules.
# v1.0.5 or later versions support the regular expression rules.
​ do-tables:
- db-name: "test[123]" # Matches test1, test2, and test3.
tbl-name: "t[1-5]" # Matches t1, t2, t3, t4, and t5.
Expand Down
6 changes: 3 additions & 3 deletions zh/feature-overview.md
Expand Up @@ -10,8 +10,8 @@ category: reference

Table Routing、Black & White Lists、Binlog Event Filter 在匹配库表名时,有以下版本差异:

+ 对于 v1.0.4 版及后续版本,以上功能均支持[通配符匹配](https://en.wikipedia.org/wiki/Glob_(programming)#Syntax)。但注意所有版本中通配符匹配中的 `*` 符号 **只能有一个且必须在末尾**
+ 对于 v1.0.4 以前的版本,Table Routing 和 Binlog Event Filter 支持通配符,但不支持 `[...]``[!...]` 表达式。Black & White Lists 仅支持正则表达式。
+ 对于 v1.0.5 版及后续版本,以上功能均支持[通配符匹配](https://en.wikipedia.org/wiki/Glob_(programming)#Syntax)。但注意所有版本中通配符匹配中的 `*` 符号 **只能有一个且必须在末尾**
+ 对于 v1.0.5 以前的版本,Table Routing 和 Binlog Event Filter 支持通配符,但不支持 `[...]``[!...]` 表达式。Black & White Lists 仅支持正则表达式。

在简单任务场景下推荐使用通配符匹配。

Expand Down Expand Up @@ -120,7 +120,7 @@ routes:
```yaml
black-white-list:
rule-1:
do-dbs: ["test*"] # 非 ~ 字符开头,表示规则是通配符;v1.0.4 及后续版本支持通配符规则。
do-dbs: ["test*"] # 非 ~ 字符开头,表示规则是通配符;v1.0.5 及后续版本支持通配符规则。
​ do-tables:
- db-name: "test[123]" # 匹配 test1、test2、test3。
tbl-name: "t[1-5]" # 匹配 t1、t2、t3、t4、t5。
Expand Down

0 comments on commit 3dbc09e

Please sign in to comment.