未验证 提交 686ab4d0 编写于 作者: A Avi Aryan

add csv and mssql docs

上级 c4d7eef4
# CSV
CSV adaptor works for csv files.
A basic config.env looks like the following.
We have an additional parameter `typename` in csv adaptor because csv files only have data and no concept of tables / types.
So we need to define it manually.
```ini
src.type=csv
src.uri=/full/local/path/to/file.csv
src.typename=type_name_to_use
dest.type=elasticsearch
dest.uri=https://USER:PASSWORD@SERVER/INDEX
```
# MSSQL
MSSQL adaptor works for Microsoft SQL Server.
A basic config.env looks like the following.
Notice how the database information is being passed as the source.
```ini
src.type=mssql
src.uri=sqlserver://USER:PASSWORD@SERVER:PORT?database=DBNAME
dest.type=elasticsearch
dest.uri=https://USER:PASSWORD@SERVER/INDEX
```
For other types of source URIs that are supported, visit [go-mssqldb](https://github.com/denisenkom/go-mssqldb#connection-parameters-and-dsn)'s GitHub page.
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册