You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2022/07/27 08:25:43 UTC
[shardingsphere] branch master updated: update according to new module (#19600)
This is an automated email from the ASF dual-hosted git repository.
zhaojinchao 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 0009af7fdbf update according to new module (#19600)
0009af7fdbf is described below
commit 0009af7fdbf59cee358af42af5229e724394a927
Author: Mike0601 <40...@users.noreply.github.com>
AuthorDate: Wed Jul 27 16:25:36 2022 +0800
update according to new module (#19600)
* Refactor document
Remove concepts document
* refactor
* update feature sharding
* update according new module
* update according to new module
* update according to new module
---
.../shardingsphere-jdbc/spring-namespace/mode.cn.md | 14 +++++++++++---
.../shardingsphere-jdbc/spring-namespace/mode.en.md | 16 ++++++++++++----
2 files changed, 23 insertions(+), 7 deletions(-)
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/spring-namespace/mode.cn.md b/docs/document/content/user-manual/shardingsphere-jdbc/spring-namespace/mode.cn.md
index cd940b911ca..c347f35ae19 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/spring-namespace/mode.cn.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/spring-namespace/mode.cn.md
@@ -3,6 +3,10 @@ title = "模式配置"
weight = 1
+++
+## 背景信息
+
+缺省配置为使用内存模式。
+
## 参数解释
### 单机模式
@@ -66,10 +70,14 @@ weight = 1
http://shardingsphere.apache.org/schema/shardingsphere/datasource/datasource.xsd
http://shardingsphere.apache.org/schema/shardingsphere/mode-repository/standalone
http://shardingsphere.apache.org/schema/shardingsphere/mode-repository/standalone/repository.xsd">
- <standalone:repository id="standaloneRepository" type="H2"/>
+ <standalone:repository id="standaloneRepository" type="File">
+ <props>
+ <prop key="path">.shardingsphere</prop>
+ </props>
+ </standalone:repository>
- <shardingsphere:data-source id="ds" database-name="foo_db" data-source-names="..." rule-refs="...">
- <shardingsphere:mode type="Standalone" repository-ref="standaloneRepository" />
+ <shardingsphere:data-source id="ds" database-name="foo_db" data-source-names="..." rule-refs="..." >
+ <shardingsphere:mode type="Standalone" repository-ref="standaloneRepository" overwrite="false" />
</shardingsphere:data-source>
</beans>
```
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/spring-namespace/mode.en.md b/docs/document/content/user-manual/shardingsphere-jdbc/spring-namespace/mode.en.md
index b1d8a9d51e2..2a7322640e8 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/spring-namespace/mode.en.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/spring-namespace/mode.en.md
@@ -3,6 +3,10 @@ title = "Mode Configuration"
weight = 1
+++
+## Background
+
+The default configuration uses memory mode.
+
## Parameters Explained
### Standalone Mode
@@ -37,7 +41,7 @@ Namespace:[http://shardingsphere.apache.org/schema/shardingsphere/mode-reposit
## Operating Procedures
-Import MAVEN dependency
+Introduce MAVEN dependency
```xml
<dependency>
@@ -65,10 +69,14 @@ Import MAVEN dependency
http://shardingsphere.apache.org/schema/shardingsphere/datasource/datasource.xsd
http://shardingsphere.apache.org/schema/shardingsphere/mode-repository/standalone
http://shardingsphere.apache.org/schema/shardingsphere/mode-repository/standalone/repository.xsd">
- <standalone:repository id="standaloneRepository" type="H2"/>
+ <standalone:repository id="standaloneRepository" type="File">
+ <props>
+ <prop key="path">.shardingsphere</prop>
+ </props>
+ </standalone:repository>
- <shardingsphere:data-source id="ds" database-name="foo_db" data-source-names="..." rule-refs="...">
- <shardingsphere:mode type="Standalone" repository-ref="standaloneRepository" />
+ <shardingsphere:data-source id="ds" database-name="foo_db" data-source-names="..." rule-refs="..." >
+ <shardingsphere:mode type="Standalone" repository-ref="standaloneRepository" overwrite="false" />
</shardingsphere:data-source>
</beans>
```