diff --git a/en/feature-overview.md b/en/feature-overview.md index 3e767b583..314b5c8e4 100644 --- a/en/feature-overview.md +++ b/en/feature-overview.md @@ -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. @@ -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. diff --git a/zh/feature-overview.md b/zh/feature-overview.md index 9e6703927..b69cdf479 100644 --- a/zh/feature-overview.md +++ b/zh/feature-overview.md @@ -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 仅支持正则表达式。 在简单任务场景下推荐使用通配符匹配。 @@ -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。