Skip to content

Commit

Permalink
improve csv separator notes (pingcap#7504)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunzhaoyang authored Nov 19, 2021
1 parent e44163e commit 3d592f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dumpling-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ SET GLOBAL tidb_gc_life_time = '10m';
| --cert | 用于 TLS 连接的 client certificate 文件的地址 |
| --key | 用于 TLS 连接的 client private key 文件的地址 |
| --csv-delimiter | csv 文件中字符类型变量的定界符 | '"' |
| --csv-separator | csv 文件中各值的分隔符 | ',' |
| --csv-separator | csv 文件中各值的分隔符,如果数据中可能有逗号,建议源文件导出时分隔符使用非常见组合字符| ','|
| --csv-null-value | csv 文件空值的表示 | "\\N" |
| --escape-backslash | 使用反斜杠 (`\`) 来转义导出文件中的特殊字符 | true |
| --output-filename-template | 以 [golang template](https://golang.org/pkg/text/template/#hdr-Arguments) 格式表示的数据文件名格式 <br/> 支持 `{{.DB}}`、`{{.Table}}`、`{{.Index}}` 三个参数 <br/> 分别表示数据文件的库名、表名、分块 ID | '{{.DB}}.{{.Table}}.{{.Index}}' |
Expand Down
4 changes: 2 additions & 2 deletions tidb-lightning/migrate-from-csv-using-tidb-lightning.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ CSV 格式可在 `tidb-lightning.toml` 文件中 `[mydumper.csv]` 下配置。

```toml
[mydumper.csv]
# 字段分隔符,必须为 ASCII 字符。
# 字段分隔符,必须为 ASCII 字符。如果数据中可能有逗号,建议源文件导出时分隔符使用非常见组合字符例如'|+|'。
separator = ','
# 引用定界符,可以为 ASCII 字符或空字符。
delimiter = '"'
Expand Down Expand Up @@ -161,7 +161,7 @@ strict-format = true

```toml
[mydumper.csv]
separator = ','
separator = ',' # 如果数据中可能有逗号,建议源文件导出时分隔符使用非常见组合字符例如'|+|'
delimiter = '"'
header = true
not-null = false
Expand Down

0 comments on commit 3d592f1

Please sign in to comment.