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
The following commit(s) were added to refs/heads/website by this push:
new 789eec5 custom sql doc
new a3d3ab1 Merge pull request #127 from simon824/customsql
789eec5 is described below
commit 789eec59aa7ee9adc710ecb21a0551ee7da9d4c5
Author: Simon Cheung <[email protected]>
AuthorDate: Fri May 6 12:00:44 2022 +0800
custom sql doc
---
content/cn/docs/quickstart/hugegraph-loader.md | 3 ++-
content/en/docs/quickstart/hugegraph-loader.md | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
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;