You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by du...@apache.org on 2022/08/29 03:28:07 UTC

[shardingsphere] branch master updated: Refactor metadata-repository document (#20627)

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

duanzhengqiang 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 3e2585590a4 Refactor metadata-repository document (#20627)
3e2585590a4 is described below

commit 3e2585590a4c55e749a38c0ac56f250d0fcaaaca
Author: zhaojinchao <zh...@apache.org>
AuthorDate: Mon Aug 29 11:27:58 2022 +0800

    Refactor metadata-repository document (#20627)
---
 docs/document/content/dev-manual/mode.cn.md              |  4 ++--
 .../builtin-algorithm/metadata-repository.cn.md          | 16 +++++++++++-----
 .../builtin-algorithm/metadata-repository.en.md          | 15 +++++++++++----
 3 files changed, 24 insertions(+), 11 deletions(-)

diff --git a/docs/document/content/dev-manual/mode.cn.md b/docs/document/content/dev-manual/mode.cn.md
index 1bdb16d19fa..7bb52c361b2 100644
--- a/docs/document/content/dev-manual/mode.cn.md
+++ b/docs/document/content/dev-manual/mode.cn.md
@@ -17,9 +17,9 @@ chapter = true
 
 ### 已知实现
 
-| *配置标识*             | *详细说明*             | *全限定类名*                   |
+| *配置标识*            | *详细说明*             | *全限定类名*                   |
 | -------------------- | -------------------- | ---------------------------- |
-| H2                   | H2-based persistence | [`org.apache.shardingsphere.mode.repository.standalone.h2.H2Repository`](https://github.com/apache/shardingsphere/blob/master/shardingsphere-mode/shardingsphere-mode-type/shardingsphere-standalone-mode/shardingsphere-standalone-mode-repository/shardingsphere-standalone-mode-repository-provider/shardingsphere-standalone-mode-repository-jdbc-h2/src/main/java/org/apache/shardingsphere/mode/repository/standalone/h2/H2Repository.java) |
+| H2                   | 基于 H2 的持久化      | [`org.apache.shardingsphere.mode.repository.standalone.h2.H2Repository`](https://github.com/apache/shardingsphere/blob/master/shardingsphere-mode/shardingsphere-mode-type/shardingsphere-standalone-mode/shardingsphere-standalone-mode-repository/shardingsphere-standalone-mode-repository-provider/shardingsphere-standalone-mode-repository-jdbc-h2/src/main/java/org/apache/shardingsphere/mode/repository/standalone/h2/H2Repository.java) |
 
 ## ClusterPersistRepository
 
diff --git a/docs/document/content/user-manual/common-config/builtin-algorithm/metadata-repository.cn.md b/docs/document/content/user-manual/common-config/builtin-algorithm/metadata-repository.cn.md
index f1ac1dea41b..8856aa09c33 100644
--- a/docs/document/content/user-manual/common-config/builtin-algorithm/metadata-repository.cn.md
+++ b/docs/document/content/user-manual/common-config/builtin-algorithm/metadata-repository.cn.md
@@ -11,15 +11,18 @@ Apache ShardingSphere 为不同的运行模式提供了不同的元数据持久
 
 ### 文件持久化
 
-类型:File
+类型:JDBC
 
 适用模式:Standalone
 
 可配置属性:
 
 | *名称*                        | *数据类型* | *说明*            | *默认值*         |
-| ---------------------------- | --------- | ---------------- | --------------- |
-| path                    | String    | 元数据存储路径   | .shardingsphere|
+| ---------------------------- | --------- | ----------------- | --------------- |
+| provider                    | String      | 元数据存储类型     | H2              |
+| jdbc_url                    | String      | JDBC URL         | jdbc:h2:mem:config;DB_CLOSE_DELAY=-1;DATABASE_TO_UPPER=false;MODE=MYSQL              |
+| username                    | String      | 账号              | sa              |
+| password                    | String      | 密码              |                 |
 
 
 ### ZooKeeper 持久化
@@ -64,9 +67,12 @@ Apache ShardingSphere 为不同的运行模式提供了不同的元数据持久
 mode:
   type: Standalone
   repository:
-    type: File
+    type: JDBC
     props:
-       path: ~/user/.shardingsphere
+      provider: H2
+      jdbc_url: jdbc:h2:mem:config;DB_CLOSE_DELAY=-1;DATABASE_TO_UPPER=false;MODE=MYSQL
+      username: test
+      password: Test@123
   overwrite: false
 ```
 
diff --git a/docs/document/content/user-manual/common-config/builtin-algorithm/metadata-repository.en.md b/docs/document/content/user-manual/common-config/builtin-algorithm/metadata-repository.en.md
index ec0ea6b8acf..b5a294878a8 100644
--- a/docs/document/content/user-manual/common-config/builtin-algorithm/metadata-repository.en.md
+++ b/docs/document/content/user-manual/common-config/builtin-algorithm/metadata-repository.en.md
@@ -10,7 +10,7 @@ Apache ShardingSphere provides different metadata persistence methods for differ
 ## Parameters
 ### File Repository
 
-Type: File
+Type: JDBC
 
 Mode: Standalone
 
@@ -18,7 +18,11 @@ Attributes:
 
 | *Name*                       | *Type* | *Description*                     | *Default Value*                                                         |
 | ---------------------------- | ------ | --------------------------------- | ----------------------------------------------------------------------- |
-|path|	String|	Path for metadata persist	|.shardingsphere|
+| provider                    | String      | Type for metadata persist     | H2              |
+| jdbc_url                    | String      | JDBC URL              | jdbc:h2:mem:config;DB_CLOSE_DELAY=-1;DATABASE_TO_UPPER=false;MODE=MYSQL              |
+| username                    | String      | username              | sa              |
+| password                    | String      | password              |                 |
+
 
 ### ZooKeeper Repository
 
@@ -62,9 +66,12 @@ Attributes:
 mode:
   type: Standalone
   repository:
-    type: File
+    type: JDBC
     props:
-       path: ~/user/.shardingsphere
+      provider: H2
+      jdbc_url: jdbc:h2:mem:config;DB_CLOSE_DELAY=-1;DATABASE_TO_UPPER=false;MODE=MYSQL
+      username: test
+      password: Test@123
   overwrite: false
 ```