DTStack / DTStack/chunjun

[Doc][Core]Add <NameMapping> Documentation

Open
#1,060 0 comments 0 reactions 1 assignee Claimed by @FlechazoW View on GitHub
document
Dominant language
Java
Stars
4.1k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

### Search before asking

- [X] I had searched in the [issues](https://github.com/DTStack/chunjun/issues) and found no similar document issue.

### Description

When we configure the synchronization of the whole database, we need to configure the mapping relationship to correspond to the data name, table name, field name of sink, it's "namemapping".
NameMapping likes
```json
"nameMapping": {
"schemaMappings": {
"TIEZHU": "public"
},
"tableMappings": {
"TIEZHU": {
"TEST_TWO": "test_two",
"two": "table2"
}
},
"fieldMappings": {
"TIEZHU": {
"TEST_TWO": {
"ID": "id",
"_DATE": "_date_",
"_TIMESTAMP": "_timestamp_",
"_STR": "_str_"
},
"two": {
"id": "id",
"name": "username"
}
}
}
}
```

### Documentation Links

_No response_

### Are you willing to submit a PR?

- [X] Yes I am willing to submit a PR!

### Code of Conduct

- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.