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

Exchange support PostgreSQL data source #1441

Merged
merged 1 commit into from
Jan 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ Exchange 2.x 支持以下操作系统:
| Parquet 文件 | 支持 | 支持 | 支持 |
| HBase | 支持 | 支持 | 支持 |
| MySQL | 支持 | 支持 | 支持 |
| PostgreSQL | 支持 | 支持 | 支持 |
| ClickHouse | 支持 | 支持 | 支持 |
| Neo4j | 不支持 | 支持 | 不支持 |
| Hive | 支持 | 支持 | 支持 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ Exchange {{exchange.release}} 支持将以下格式或来源的数据转换为 N

- 图数据库:[Neo4j](../use-exchange/ex-ug-import-from-neo4j.md)(Client 版本 2.4.5-M1)

- 关系型数据库:[MySQL](../use-exchange/ex-ug-import-from-mysql.md)
- 关系型数据库:
- [MySQL](../use-exchange/ex-ug-import-from-mysql.md)
- [PostgreSQL](../use-exchange/ex-ug-import-from-mysql.md)

- 列式数据库:[ClickHouse](../use-exchange/ex-ug-import-from-clickhouse.md)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,15 @@
|`tags.database`|string|-|是|Neo4j 中保存源数据的数据库名。|
|`tags.check_point_path`|string|`/tmp/test`|否|设置保存导入进度信息的目录,用于断点续传。如果未设置,表示不启用断点续传。|

### MySQL 源特有参数
### MySQL/PostgreSQL 源特有参数

|参数|数据类型|默认值|是否必须|说明|
|:---|:---|:---|:---|:---|
|`tags.host`|string|-|是|MySQL 服务器地址。|
|`tags.port`|string|-|是|MySQL 服务器端口。|
|`tags.host`|string|-|是|MySQL/PostgreSQL 服务器地址。|
|`tags.port`|string|-|是|MySQL/PostgreSQL 服务器端口。|
|`tags.database`|string|-|是|数据库名称。|
|`tags.table`|string|-|是|需要作为数据源的表名称。|
|`tags.user`|string|-|是|拥有读取权限的 MySQL 用户名。|
|`tags.user`|string|-|是|拥有读取权限的 MySQL/PostgreSQL 用户名。|
|`tags.password`|string|-|是|用户名对应密码。|
|`tags.sentence`|string|-|是|查询数据源的语句。例如`"select teamid, name from basketball.team order by teamid;"`。|

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 导入 MySQL 数据

本文以一个示例说明如何使用 Exchange 将存储在 MySQL 上的数据导入 Nebula Graph。
本文以一个示例说明如何使用 Exchange 将存储在 MySQL 上的数据导入 Nebula Graph,也适用于从 PostgreSQL 导出数据到 Nebula Graph

## 数据集

Expand Down