This is an automated email from the ASF dual-hosted git repository.

jianglongtao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 4093ddf  Update distsql document. (#14546)
4093ddf is described below

commit 4093ddf7d804d3df5fae57425f9c4c62e244a814
Author: yx9o <[email protected]>
AuthorDate: Wed Jan 5 20:04:39 2022 +0800

    Update distsql document. (#14546)
---
 .../syntax/rql/rule-query/db-discovery.cn.md       | 28 +++++++++----------
 .../syntax/rql/rule-query/db-discovery.en.md       | 31 +++++++++++-----------
 2 files changed, 29 insertions(+), 30 deletions(-)

diff --git 
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rql/rule-query/db-discovery.cn.md
 
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rql/rule-query/db-discovery.cn.md
index e5021e3..43aef56 100644
--- 
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rql/rule-query/db-discovery.cn.md
+++ 
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rql/rule-query/db-discovery.cn.md
@@ -19,7 +19,7 @@ SHOW DB_DISCOVERY HEARTBEATS [FROM schemaName]
 
 | 列                       | 说明            |
 | ------------------------ | --------------- |
-| name                     | 规则名称         |
+| group_name               | 规则名称         |
 | data_source_names        | 数据源名称列表    |
 | primary_data_source_name | 主数据源名称      |
 | discovery_type           | 数据库发现服务类型 |
@@ -46,11 +46,11 @@ SHOW DB_DISCOVERY HEARTBEATS [FROM schemaName]
 
 ```sql
 mysql> show db_discovery rules;
-+------------+-------------------+--------------------------+------------------------------------------------------------------+------------------------------------------------------------------+
-| name       | data_source_names | primary_data_source_name | discovery_type   
                                                | discovery_heartbeat           
                                   |
-+------------+-------------------+--------------------------+------------------------------------------------------------------+------------------------------------------------------------------+
++------------+-------------------+--------------------------+-------------------------------------------------------------------+--------------------------------------------------------------------+
+| group_name | data_source_names | primary_data_source_name | discovery_type   
                                                 | discovery_heartbeat          
                                      |
++------------+-------------------+--------------------------+-------------------------------------------------------------------+--------------------------------------------------------------------+
 | ha_group_0 | ds_0,ds_1,ds_2    |        ds_0              | 
{name=ha_group_0_mgr, type=mgr, props={group-name=92504d5b-6dec}} | 
{name=ha_group_0_heartbeat, props={keep-alive-cron=0/5 * * * * ?}} |
-+------------+-------------------+--------------------------+------------------------------------------------------------------+------------------------------------------------------------------+
++------------+-------------------+--------------------------+-------------------------------------------------------------------+--------------------------------------------------------------------+
 1 row in set (0.20 sec)
 ```
 
@@ -58,11 +58,11 @@ mysql> show db_discovery rules;
 
 ```sql
 mysql> show db_discovery types;
-+----------------+------+---------------------------+
-| name           | type | props                     |
-+----------------+------+---------------------------+
++----------------+------+----------------------------+
+| name           | type | props                      |
++----------------+------+----------------------------+
 | ha_group_0_mgr | mgr  | {group-name=92504d5b-6dec} |
-+----------------+------+---------------------------+
++----------------+------+----------------------------+
 1 row in set (0.01 sec)
 ```
 
@@ -70,10 +70,10 @@ mysql> show db_discovery types;
 
 ```sql
 mysql> show db_discovery heartbeats;
-+----------------------+-------------------------------+
-| name                 | props                         |
-+----------------------+-------------------------------+
++----------------------+---------------------------------+
+| name                 | props                           |
++----------------------+---------------------------------+
 | ha_group_0_heartbeat | {keep-alive-cron=0/5 * * * * ?} |
-+----------------------+-------------------------------+
++----------------------+---------------------------------+
 1 row in set (0.01 sec)
-```
\ No newline at end of file
+```
diff --git 
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rql/rule-query/db-discovery.en.md
 
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rql/rule-query/db-discovery.en.md
index aa9f7e2..0d29c51 100644
--- 
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rql/rule-query/db-discovery.en.md
+++ 
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rql/rule-query/db-discovery.en.md
@@ -19,12 +19,11 @@ SHOW DB_DISCOVERY HEARTBEATS [FROM schemaName]
 
 | Column                   | Description                            |
 | ------------------------ | -------------------------------------- |
-| name                     | Rule name                              |
+| group_name               | Rule name                              |
 | data_source_names        | Data source name list                  |
 | primary_data_source_name | Primary data source name               |
-| discover_type            | Database discovery service type        |
-| discover_props           | Database discovery service parameters  |
-
+| discovery_type           | Database discovery service type        |
+| discovery_heartbeat      | Database discovery service heartbeat   |
 
 ### DB Discovery Type
 
@@ -47,11 +46,11 @@ SHOW DB_DISCOVERY HEARTBEATS [FROM schemaName]
 
 ```sql
 mysql> show db_discovery rules;
-+------------+-------------------+--------------------------+------------------------------------------------------------------+------------------------------------------------------------------+
-| name       | data_source_names | primary_data_source_name | discovery_type   
                                                | discovery_heartbeat           
                                   |
-+------------+-------------------+--------------------------+------------------------------------------------------------------+------------------------------------------------------------------+
++------------+-------------------+--------------------------+-------------------------------------------------------------------+--------------------------------------------------------------------+
+| group_name | data_source_names | primary_data_source_name | discovery_type   
                                                 | discovery_heartbeat          
                                      |
++------------+-------------------+--------------------------+-------------------------------------------------------------------+--------------------------------------------------------------------+
 | ha_group_0 | ds_0,ds_1,ds_2    |        ds_0              | 
{name=ha_group_0_mgr, type=mgr, props={group-name=92504d5b-6dec}} | 
{name=ha_group_0_heartbeat, props={keep-alive-cron=0/5 * * * * ?}} |
-+------------+-------------------+--------------------------+------------------------------------------------------------------+------------------------------------------------------------------+
++------------+-------------------+--------------------------+-------------------------------------------------------------------+--------------------------------------------------------------------+
 1 row in set (0.20 sec)
 ```
 
@@ -59,11 +58,11 @@ mysql> show db_discovery rules;
 
 ```sql
 mysql> show db_discovery types;
-+----------------+------+---------------------------+
-| name           | type | props                     |
-+----------------+------+---------------------------+
++----------------+------+----------------------------+
+| name           | type | props                      |
++----------------+------+----------------------------+
 | ha_group_0_mgr | mgr  | {group-name=92504d5b-6dec} |
-+----------------+------+---------------------------+
++----------------+------+----------------------------+
 1 row in set (0.01 sec)
 ```
 
@@ -71,10 +70,10 @@ mysql> show db_discovery types;
 
 ```sql
 mysql> show db_discovery heartbeats;
-+----------------------+-------------------------------+
-| name                 | props                         |
-+----------------------+-------------------------------+
++----------------------+---------------------------------+
+| name                 | props                           |
++----------------------+---------------------------------+
 | ha_group_0_heartbeat | {keep-alive-cron=0/5 * * * * ?} |
-+----------------------+-------------------------------+
++----------------------+---------------------------------+
 1 row in set (0.01 sec)
 ```

Reply via email to