From 033fb96f7f025c3904bd62a99d072114b1ec8eb1 Mon Sep 17 00:00:00 2001 From: randomJoe211 <69501902+randomJoe211@users.noreply.github.com> Date: Fri, 28 Jan 2022 17:40:32 +0800 Subject: [PATCH] Exchange support PostgreSQL data source (#1441) --- .../nebula-exchange/about-exchange/ex-ug-limitations.md | 1 + .../about-exchange/ex-ug-what-is-exchange.md | 4 +++- .../parameter-reference/ex-ug-parameter.md | 8 ++++---- .../use-exchange/ex-ug-import-from-mysql.md | 2 +- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/docs-2.0/nebula-exchange/about-exchange/ex-ug-limitations.md b/docs-2.0/nebula-exchange/about-exchange/ex-ug-limitations.md index 92547dc7aea..9e4927dacc6 100644 --- a/docs-2.0/nebula-exchange/about-exchange/ex-ug-limitations.md +++ b/docs-2.0/nebula-exchange/about-exchange/ex-ug-limitations.md @@ -48,6 +48,7 @@ Exchange 2.x 支持以下操作系统: | Parquet 文件 | 支持 | 支持 | 支持 | | HBase | 支持 | 支持 | 支持 | | MySQL | 支持 | 支持 | 支持 | + | PostgreSQL | 支持 | 支持 | 支持 | | ClickHouse | 支持 | 支持 | 支持 | | Neo4j | 不支持 | 支持 | 不支持 | | Hive | 支持 | 支持 | 支持 | diff --git a/docs-2.0/nebula-exchange/about-exchange/ex-ug-what-is-exchange.md b/docs-2.0/nebula-exchange/about-exchange/ex-ug-what-is-exchange.md index 7c6dcc0a7cc..cef04451df7 100644 --- a/docs-2.0/nebula-exchange/about-exchange/ex-ug-what-is-exchange.md +++ b/docs-2.0/nebula-exchange/about-exchange/ex-ug-what-is-exchange.md @@ -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) diff --git a/docs-2.0/nebula-exchange/parameter-reference/ex-ug-parameter.md b/docs-2.0/nebula-exchange/parameter-reference/ex-ug-parameter.md index 5e9d74f5abd..4bd8d1f5dac 100644 --- a/docs-2.0/nebula-exchange/parameter-reference/ex-ug-parameter.md +++ b/docs-2.0/nebula-exchange/parameter-reference/ex-ug-parameter.md @@ -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;"`。| diff --git a/docs-2.0/nebula-exchange/use-exchange/ex-ug-import-from-mysql.md b/docs-2.0/nebula-exchange/use-exchange/ex-ug-import-from-mysql.md index a1f031b04cc..ef6d3936954 100644 --- a/docs-2.0/nebula-exchange/use-exchange/ex-ug-import-from-mysql.md +++ b/docs-2.0/nebula-exchange/use-exchange/ex-ug-import-from-mysql.md @@ -1,6 +1,6 @@ # 导入 MySQL 数据 -本文以一个示例说明如何使用 Exchange 将存储在 MySQL 上的数据导入 Nebula Graph。 +本文以一个示例说明如何使用 Exchange 将存储在 MySQL 上的数据导入 Nebula Graph,也适用于从 PostgreSQL 导出数据到 Nebula Graph。 ## 数据集