You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by su...@apache.org on 2022/12/05 08:00:37 UTC

[shardingsphere] branch master updated: Add document for REFRESH DATABASE METADATA. (#22655)

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

sunnianjun 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 6e59b01c3a0 Add document for REFRESH DATABASE METADATA. (#22655)
6e59b01c3a0 is described below

commit 6e59b01c3a0003e3263ab4a6e97ece2bcf48f0c2
Author: Raigor <ra...@gmail.com>
AuthorDate: Mon Dec 5 16:00:24 2022 +0800

    Add document for REFRESH DATABASE METADATA. (#22655)
---
 .../user-manual/shardingsphere-proxy/distsql/syntax/ral/_index.cn.md     | 1 +
 .../user-manual/shardingsphere-proxy/distsql/syntax/ral/_index.en.md     | 1 +
 2 files changed, 2 insertions(+)

diff --git a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/_index.cn.md b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/_index.cn.md
index a70af3a227f..b3f7697044f 100644
--- a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/_index.cn.md
+++ b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/_index.cn.md
@@ -71,6 +71,7 @@ RAL (Resource & Rule Administration Language) 为 Apache ShardingSphere 的管
 | REFRESH TABLE METADATA tableName                                           | 刷新指定表的元数据                                                                                                  | REFRESH TABLE METADATA t_order                                       |
 | REFRESH TABLE METADATA tableName FROM STORAGE UNIT storageUnitName         | 刷新指定数据源中表的元数据                                                                                           | REFRESH TABLE METADATA t_order FROM STORAGE UNIT ds_1                |
 | REFRESH TABLE METADATA FROM STORAGE UNIT storageUnitName SCHEMA schemaName | 刷新指定 schema 中表的元数据,如果 schema 中不存在表,则会删除该 schema                                                 | REFRESH TABLE METADATA FROM STORAGE UNIT ds_1 SCHEMA db_schema       |
+| REFRESH DATABASE METADATA [databaseName] FROM GOVERNANCE CENTER            | 从治理中心拉取最新配置,刷新本地逻辑库元数据                                                                            | REFRESH DATABASE METADATA [databaseName] FROM GOVERNANCE CENTER      |
 | SHOW TABLE METADATA tableName [, tableName] ...                            | 查询表的元数据                                                                                                      | SHOW TABLE METADATA t_order                                           |
 | EXPORT DATABASE CONFIGURATION [FROM databaseName] [TO FILE "filePath"]     | 将 database 中的数据源和规则配置导出为 YAML 格式                                                                      | EXPORT DATABASE CONFIGURATION TO FILE "/xxx/config-sharding.yaml"     |
 | IMPORT DATABASE CONFIGURATION FROM FILE "filePath"                         | 将 YAML 中的配置导入到 database 中,仅支持对空库进行导入操作                                                            | IMPORT DATABASE CONFIGURATION FROM FILE "/xxx/config-sharding.yaml"   |
diff --git a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/_index.en.md b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/_index.en.md
index 6ebaa4d6b41..3fb04edd89c 100644
--- a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/_index.en.md
+++ b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/_index.en.md
@@ -71,6 +71,7 @@ RAL (Resource & Rule Administration Language) responsible for hint, circuit brea
 | REFRESH TABLE METADATA tableName                                            | Refresh the metadata of the specified table                                                                                                             | REFRESH TABLE METADATA t_order                                    |
 | REFRESH TABLE METADATA tableName FROM STORAGE UNIT storageUnitName          | Refresh the tables' metadata in the specified data source                                                                                               | REFRESH TABLE METADATA t_order FROM STORAGE UNIT ds_1             |
 | REFRESH TABLE METADATA FROM STORAGE UNIT storageUnitName SCHEMA schemaName  | Refresh the tables' metadata in a schema of a specified data source. If there are no tables in the schema, the schema will be deleted.                  | REFRESH TABLE METADATA FROM STORAGE UNIT ds_1 SCHEMA db_schema    |
+| REFRESH DATABASE METADATA [databaseName] FROM GOVERNANCE CENTER             | Pull the latest configuration from the governance center and refresh the metadata of the local logic database                                           | REFRESH DATABASE METADATA [databaseName] FROM GOVERNANCE CENTER   |
 | SHOW TABLE METADATA tableName [, tableName] ...                             | Query table metadata                                                                                                                                    | SHOW TABLE METADATA t_order                                       |
 | EXPORT DATABASE CONFIGURATION [FROM databaseName] [TO FILE "filePath"]      | Export data sources and rule configurations to YAML format                                                                                              | EXPORT DATABASE CONFIGURATION FROM readwrite_splitting_db         |
 | IMPORT DATABASE CONFIGURATION FILE="file_path"                              | Import data sources and rule configurations from YAML, only supports import into an empty database                                                      | IMPORT DATABASE CONFIGURATION FILE = "/xxx/config-sharding.yaml"  |