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

Update dumpling-overview.md #16620

Merged
merged 11 commits into from
Mar 1, 2024
1 change: 1 addition & 0 deletions dumpling-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ SET GLOBAL tidb_gc_life_time = '10m';
| `--csv-separator` | Separator of each value in CSV files. It is not recommended to use the default ','. It is recommended to use '\|+\|' or other uncommon character combinations| ',' | ',' |
| `--csv-null-value` | Representation of null values in CSV files | "\\N" |
| `--csv-line-terminator` | The terminator at the end of a line for CSV files. When exporting data to a CSV file, you can specify the desired terminator with this option. This option supports "\\r\\n" and "\\n". The default value is "\\r\\n", which is consistent with the earlier versions. Because quotes in bash have different escaping rules, if you want to specify LF (linefeed) as a terminator, you can use a syntax similar to `--csv-line-terminator $'\n'`. | "\\r\\n" |
| `--csv-output-dialect` | Indicates that the source data can be exported to a CSV file in a specific required format for the database. The option value can be `"snowflake"`, `"redshift"`, and `"bigquery"`. If you set the option to `"snowflake"` or `"redshift"`, the binary data type will be converted to hexadecimal, but the `0x` prefix will be removed. For example, `0x61` will be represented as `61`. If you set the option to `"bigquery"`, the binary data type will be encoded using base64. The default value is null, which means to encode and export the data according to UTF-8. In some cases, the binary string will be garbled. | `""` |
hfxsd marked this conversation as resolved.
Show resolved Hide resolved
| `--escape-backslash` | Use backslash (`\`) to escape special characters in the export file | true |
| `--output-filename-template` | The filename templates represented in the format of [golang template](https://golang.org/pkg/text/template/#hdr-Arguments) <br/> Support the `{{.DB}}`, `{{.Table}}`, and `{{.Index}}` arguments <br/> The three arguments represent the database name, table name, and chunk ID of the data file | `{{.DB}}.{{.Table}}.{{.Index}}` |
| `--status-addr` | Dumpling's service address, including the address for Prometheus to pull metrics and pprof debugging | ":8281" |
Expand Down
Loading