# Configuration Section: Routes Configuration

+ **`schema-pattern:`** Single or multiple matching schema in upstream
+ **`table-pattern:`** Single or multiple matching tables in upstream
+ **`target-schema:`** Single matching schema in downstream
+ **`target-table:`** Single matching table in downstream

```
########################### ~!@Routes@!~ ##############################
[routes]

[routes.rule1]
    schema-pattern = "test_*"     
    table-pattern = "t_*"          
    target-schema = "test"         
    target-table = "t"             

[routes.rule2]
    schema-pattern = "test2_*"     
    table-pattern = "t2_*"          
    target-schema = "test2"         
    target-table = "t2"             
```

-------------------------------------------------------------
`Routes` configuration sample:
```
########################### Routes ##############################
# To compare the data of a large number of tables with different schema names or table names, or check the data of multiple upstream sharded tables and downstream table family, use the table-rule to configure the mapping relationship. You can configure the mapping rule only for the schema or table. Also, you can configure the mapping rules for both the schema and the table.
[routes]
[routes.rule1] # rule1 is the only custom ID for the configuration. It is used for the `data-sources.route-rules` configuration in the previous slide.
schema-pattern = "test_*"      # Matches the schema name of the data source. Supports the wildcards "*" and "?"
table-pattern = "t_*"          # Matches the table name of the data source. Supports the wildcards "*" and "?"
target-schema = "test"         # The name of the schema in the target database
target-table = "t"             # The name of the target table
[routes.rule2]
schema-pattern = "test2_*"      # Matches the schema name of the data source. Supports the wildcards "*" and "?"
table-pattern = "t2_*"          # Matches the table name of the data source. Supports the wildcards "*" and "?"
target-schema = "test2"         # The name of the schema in the target database
target-table = "t2"             # The name of the target table
```