Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dm: update contents about wildcards #14695

Merged
merged 3 commits into from
Sep 8, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refined examples
  • Loading branch information
hfxsd committed Sep 4, 2023
commit 2ea235da7515d872235a69c925335327bafce731
2 changes: 1 addition & 1 deletion dm/dm-binlog-event-filter.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Starting from DM v2.0.2, you can configure the binlog event filter in the source

When you use the wildcard for matching schemas and tables, note the following:

- `schema-pattern` and `table-pattern` only support wildcards including `*`, `?` and `[]`. There can only be one `*` symbol in a wildcard match, and it must be at the end. For example, `table-pattern: "t_*"` indicates all tables starting with `t_`. See [wildcard matching](https://en.wikipedia.org/wiki/Glob_(programming)#Syntax) for details.
- `schema-pattern` and `table-pattern` only support wildcards including `*`, `?` and `[]`. There can only be one `*` symbol in a wildcard match, and it must be at the end. For example, in `table-pattern: "t_*"`, `"t_*"` indicates all tables starting with `t_`. See [wildcard matching](https://en.wikipedia.org/wiki/Glob_(programming)#Syntax) for details.
hfxsd marked this conversation as resolved.
Show resolved Hide resolved

- `sql-pattern` only supports regular expressions.

Expand Down
2 changes: 1 addition & 1 deletion dm/dm-block-allow-table-lists.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ block-allow-list: # Use black-white-list if the DM version is earlie

In simple scenarios, it is recommended that you use the wildcard for matching schemas and tables. However, note the following version differences:

- Wildcards including `*`, `?` and `[]` are supported. There can only be one `*` symbol in a wildcard match, and it must be at the end. For example, `tbl-name: "t*"` indicates all tables starting with `t`. See [wildcard matching](https://en.wikipedia.org/wiki/Glob_(programming)#Syntax) for details.
- Wildcards including `*`, `?` and `[]` are supported. There can only be one `*` symbol in a wildcard match, and it must be at the end. For example, in `tbl-name: "t*"`, `"t*"` indicates all tables starting with `t`. See [wildcard matching](https://en.wikipedia.org/wiki/Glob_(programming)#Syntax) for details.
hfxsd marked this conversation as resolved.
Show resolved Hide resolved

- A regular expression must begin with the `~` character.

Expand Down
2 changes: 1 addition & 1 deletion dm/dm-table-routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ routes:

Regular expressions and wildcards are supported to match database and table names. In simple scenarios, it is recommended that you use the wildcard for matching schemas and tables. However, note the following:

- Wildcards including `*`, `?` and `[]` are supported. There can only be one `*` symbol in a wildcard match, and it must be at the end. For example, `table-pattern: "t_*"` indicates all tables starting with `t_`. See [wildcard matching](https://en.wikipedia.org/wiki/Glob_(programming)#Syntax) for details.
- Wildcards including `*`, `?` and `[]` are supported. There can only be one `*` symbol in a wildcard match, and it must be at the end. For example, in `table-pattern: "t_*"`, `"t_*"` indicates all tables starting with `t_`. See [wildcard matching](https://en.wikipedia.org/wiki/Glob_(programming)#Syntax) for details.
hfxsd marked this conversation as resolved.
Show resolved Hide resolved

- `table-regexp`, `schema-regexp`, and `source-regexp` only support regular expressions and cannot start with the `~` symbol.

Expand Down