Skip to content

Commit ad34e14

Browse files
committed
update docs
1 parent 6f7359d commit ad34e14

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

docs/en/config.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ url=mysql://user1:abc%25%24%23%3F%[email protected]:3307?ssl-mode=disabled
3434

3535
| Config | Description | Example | Default |
3636
| :-------- | :-------- | :-------- | :-------- |
37-
| do_dbs | databases to be synced | db_1,db_2*,\`db*&#\` | - |
38-
| ignore_dbs | databases to be filtered | db_1,db_2*,\`db*&#\` | - |
39-
| do_tbs | tables to be synced | db_1.tb_1,db_2*.tb_2*,\`db*&#\`.\`tb*&#\` | - |
40-
| ignore_tbs | tables to be filtered | db_1.tb_1,db_2*.tb_2*,\`db*&#\`.\`tb*&#\` | - |
37+
| do_dbs | databases to be synced, takes union with do_tbs | db_1,db_2*,\`db*&#\` | - |
38+
| ignore_dbs | databases to be filtered, takes union with ignore_tbs | db_1,db_2*,\`db*&#\` | - |
39+
| do_tbs | tables to be synced, takes union with do_dbs | db_1.tb_1,db_2*.tb_2*,\`db*&#\`.\`tb*&#\` | - |
40+
| ignore_tbs | tables to be filtered, takes union with ignore_dbs | db_1.tb_1,db_2*.tb_2*,\`db*&#\`.\`tb*&#\` | - |
4141
| ignore_cols | table columns to be filtered | json:[{"db":"db_1","tb":"tb_1","ignore_cols":["f_2","f_3"]},{"db":"db_2","tb":"tb_2","ignore_cols":["f_3"]}] | - |
4242
| do_events | events to be synced | insert,update,delete | - |
4343
| do_ddls | ddls to be synced, for mysql cdc tasks | create_database,drop_database,alter_database,create_table,drop_table,truncate_table,rename_table,alter_table,create_index,drop_index | - |
@@ -58,6 +58,7 @@ url=mysql://user1:abc%25%24%23%3F%[email protected]:3307?ssl-mode=disabled
5858

5959
- ignore_tbs + ignore_tbs > do_tbs + do_dbs.
6060
- If a table matches both **ignore** configs and **do** configs, the table will be filtered.
61+
- If both do_tbs and do_dbs are configured, **the filter is the union of both**. If both ignore_tbs and ignore_dbs are configured, **the filter is the union of both**.
6162

6263
## Wildcard
6364

docs/en/tutorial/prerequisites.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
- Set images
55
```
6-
export APE_DTS_IMAGE="docker.io/apecloud/ape-dts:2.0.21"
6+
export APE_DTS_IMAGE="docker.io/apecloud/ape-dts:2.0.22"
77
export MYSQL_IMAGE="mysql:5.7.40"
88
export POSTGRES_IMAGE="postgis/postgis:15-3.4"
99
export REDIS_IMAGE="redis:7.0"

docs/zh/config.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ url=mysql://user1:abc%25%24%23%3F%[email protected]:3307?ssl-mode=disabled
3333

3434
| 配置 | 作用 | 示例 | 默认 |
3535
| :-------- | :-------- | :-------- | :-------- |
36-
| do_dbs | 需同步的库 | db_1,db_2*,\`db*&#\` | - |
37-
| ignore_dbs | 需过滤的库 | db_1,db_2*,\`db*&#\` | - |
38-
| do_tbs | 需同步的表 | db_1.tb_1,db_2*.tb_2*,\`db*&#\`.\`tb*&#\` | - |
39-
| ignore_tbs | 需过滤的表 | db_1.tb_1,db_2*.tb_2*,\`db*&#\`.\`tb*&#\` | - |
36+
| do_dbs | 需同步的库,和 do_tbs 取并集 | db_1,db_2*,\`db*&#\` | - |
37+
| ignore_dbs | 需过滤的库,和 ignore_tbs 取并集 | db_1,db_2*,\`db*&#\` | - |
38+
| do_tbs | 需同步的表,和 do_dbs 取并集 | db_1.tb_1,db_2*.tb_2*,\`db*&#\`.\`tb*&#\` | - |
39+
| ignore_tbs | 需过滤的表,和 ignore_dbs 取并集 | db_1.tb_1,db_2*.tb_2*,\`db*&#\`.\`tb*&#\` | - |
4040
| ignore_cols | 某些表需过滤的列 | json:[{"db":"db_1","tb":"tb_1","ignore_cols":["f_2","f_3"]},{"db":"db_2","tb":"tb_2","ignore_cols":["f_3"]}] | - |
4141
| do_events | 需同步的事件 | insert、update、delete | - |
4242
| do_ddls | 需同步的 ddl,适用于 mysql cdc 任务 | create_database,drop_database,alter_database,create_table,drop_table,truncate_table,rename_table,alter_table,create_index,drop_index | - |
@@ -55,8 +55,9 @@ url=mysql://user1:abc%25%24%23%3F%[email protected]:3307?ssl-mode=disabled
5555

5656
## 优先级
5757

58-
- ignore_tbs + ignore_tbs > do_tbs + do_dbs。
58+
- ignore_tbs + ignore_dbs > do_tbs + do_dbs。
5959
- 如果某张表既匹配了 ignore 项,又匹配了 do 项,则该表会被过滤。
60+
- 如果 do_tbs 和 do_dbs 都有配置,**则同步范围为二者并集**,如果 ignore_tbs 和 ignore_dbs 均有配置,**则过滤范围为二者并集**
6061

6162
## 通配符
6263

0 commit comments

Comments
 (0)