You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hugegraph.apache.org by ji...@apache.org on 2022/05/06 14:30:18 UTC
[incubator-hugegraph-doc] 04/04: custom sql doc
This is an automated email from the ASF dual-hosted git repository.
jin pushed a commit to branch website
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph-doc.git
commit c18a4b651a56594e745ab39e0995d7ed4386fc06
Author: Simon Cheung <mi...@apache.org>
AuthorDate: Fri May 6 12:00:44 2022 +0800
custom sql doc
recover
---
.gitignore | 1 +
content/cn/docs/quickstart/hugegraph-loader.md | 3 ++-
content/en/docs/quickstart/hugegraph-loader.md | 3 ++-
3 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/.gitignore b/.gitignore
index 3949c5d..af1b646 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
+public/
resources/
node_modules/
package-lock.json
diff --git a/content/cn/docs/quickstart/hugegraph-loader.md b/content/cn/docs/quickstart/hugegraph-loader.md
index c095f28..a7aa60e 100644
--- a/content/cn/docs/quickstart/hugegraph-loader.md
+++ b/content/cn/docs/quickstart/hugegraph-loader.md
@@ -588,7 +588,8 @@ bin/mapping-convert.sh struct.json
- url: jdbc 要连接的数据库的 url,必填;
- database: 要连接的数据库名,必填;
- schema: 要连接的 schema 名,不同的数据库要求不一样,下面详细说明;
-- table: 要连接的表名,必填;
+- table: 要连接的表名,`custom_sql` 和 `table` 参数必须填其中一个;
+- custom_sql: 自定义 SQL 语句,`custom_sql` 和 `table` 参数必须填其中一个;
- username: 连接数据库的用户名,必填;
- password: 连接数据库的密码,必填;
- batch_size: 按页获取表数据时的一页的大小,默认为 500,选填;
diff --git a/content/en/docs/quickstart/hugegraph-loader.md b/content/en/docs/quickstart/hugegraph-loader.md
index a0b32ec..32e666b 100644
--- a/content/en/docs/quickstart/hugegraph-loader.md
+++ b/content/en/docs/quickstart/hugegraph-loader.md
@@ -585,7 +585,8 @@ As mentioned above, it supports multiple relational databases, but because their
- url: the url of the database that jdbc wants to connect to, required;
- database: the name of the database to be connected, required;
- schema: The name of the schema to be connected, different databases have different requirements, and the details are explained below;
-- table: the name of the table to be connected, required;
+- table: the name of the table to be connected, at least one of `table` or `custom_sql` is required;
+- custom_sql: custom SQL statement, at least one of `table` or `custom_sql` is required;
- username: username to connect to the database, required;
- password: password for connecting to the database, required;
- batch_size: The size of one page when obtaining table data by page, the default is 500, optional;