Skip to content

Commit

Permalink
Refactor Refresh TABLE METADATA document (#20189)
Browse files Browse the repository at this point in the history
* Refactor Refresh TABLE METADATA document

* Remove Memory info

* Modify

* adjument

* Update
  • Loading branch information
zhaojinchao95 authored Aug 16, 2022
1 parent 60610c6 commit 92de507
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ weight = 1

```properties
spring.shardingsphere.mode.type= # 运行模式类型。可选配置:Standalone、Cluster
spring.shardingsphere.mode.repository= # 持久化仓库配置。Memory 类型无需持久化
spring.shardingsphere.mode.repository= # 持久化仓库配置。
spring.shardingsphere.mode.overwrite= # 是否使用本地配置覆盖持久化配置
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ RAL (Resource & Rule Administration Language) 为 Apache ShardingSphere 的管
| SHOW ALL VARIABLES | 查询 proxy 所有的属性配置 | SHOW ALL VARIABLES |
| SHOW VARIABLE variable_name | 查询 proxy 属性,需使用下划线命名 | SHOW VARIABLE sql_show |
| REFRESH TABLE METADATA | 刷新所有表的元数据 | REFRESH TABLE METADATA |
| REFRESH TABLE METADATA [tableName / tableName FROM RESOURCE resourceName] | 刷新指定表的元数据 | REFRESH TABLE METADATA t_order FROM RESOURCE ds_1 |
| REFRESH TABLE METADATA tableName | 刷新指定表的元数据 | REFRESH TABLE METADATA t_order |
| REFRESH TABLE METADATA tableName FROM RESOURCE resourceName | 刷新指定数据源中表的元数据 | REFRESH TABLE METADATA t_order FROM RESOURCE ds_1 |
| REFRESH TABLE METADATA FROM RESOURCE resourceName SCHEMA schemaName | 刷新指定 schema 中表的元数据,如果 schema 中不存在表,则会删除该 schema | REFRESH TABLE METADATA FROM RESOURCE ds_1 SCHEMA db_schema |
| SHOW TABLE METADATA tableName [, tableName] ... | 查询表的元数据 | SHOW TABLE METADATA t_order |
| EXPORT DATABASE CONFIG [FROM database_name] [, file="file_path"] | 将 database 中的资源和规则配置导出为 YAML 格式 | EXPORT DATABASE CONFIG FROM readwrite_splitting_db |
| IMPORT DATABASE CONFIG FILE="file_path" | 将 YAML 中的配置导入到 database 中,仅支持对空库进行导入操作 | IMPORT DATABASE CONFIG FILE = "/xxx/config-sharding.yaml" |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ RAL (Resource & Rule Administration Language) responsible for hint, circuit brea
| SHOW ALL VARIABLES | Query proxy all properties configuration | SHOW ALL VARIABLES |
| SHOW VARIABLE variable_name | Query proxy variable, name is split by underscore | SHOW VARIABLE sql_show |
| REFRESH TABLE METADATA | Refresh the metadata of all tables | REFRESH TABLE METADATA |
| REFRESH TABLE METADATA [tableName / tableName FROM RESOURCE resourceName] | Refresh the metadata of a table | REFRESH TABLE METADATA t_order FROM resource ds_1 |
| REFRESH TABLE METADATA tableName | Refresh the metadata of the specified table | REFRESH TABLE METADATA t_order |
| REFRESH TABLE METADATA tableName FROM RESOURCE resourceName | Refresh the tables' metadata in the specified data source | REFRESH TABLE METADATA t_order FROM RESOURCE ds_1 |
| REFRESH TABLE METADATA FROM RESOURCE resourceName 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 RESOURCE ds_1 SCHEMA db_schema|
| SHOW TABLE METADATA tableName [, tableName] ... | Query table metadata | SHOW TABLE METADATA t_order |
| EXPORT DATABASE CONFIG [FROM database_name] [, file="file_path"] | Export resources and rule configurations to YAML format | EXPORT DATABASE CONFIG FROM readwrite_splitting_db |
| IMPORT DATABASE CONFIG FILE="file_path" | Import resources and rule configuration from YAML, only supports import into an empty database | IMPORT DATABASE CONFIG FILE = "/xxx/config-sharding.yaml" |
Expand Down

0 comments on commit 92de507

Please sign in to comment.