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/04/29 12:14:44 UTC
[shardingsphere] branch master updated: add user manual for transaction (#17213)
This is an automated email from the ASF dual-hosted git repository.
zhangliang 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 d0f0a8bbf56 add user manual for transaction (#17213)
d0f0a8bbf56 is described below
commit d0f0a8bbf56f593bfbb4a633bcd8a277a511eede
Author: JingShang Lu <ji...@gmail.com>
AuthorDate: Fri Apr 29 20:14:38 2022 +0800
add user manual for transaction (#17213)
---
.../yaml-config/rules/transaction.cn.md | 21 +++++++++++++++++++++
.../yaml-config/rules/transaction.en.md | 21 +++++++++++++++++++++
2 files changed, 42 insertions(+)
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/yaml-config/rules/transaction.cn.md b/docs/document/content/user-manual/shardingsphere-jdbc/yaml-config/rules/transaction.cn.md
new file mode 100644
index 00000000000..e6d84cffdda
--- /dev/null
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/yaml-config/rules/transaction.cn.md
@@ -0,0 +1,21 @@
++++
+title = "分布式事务"
+weight = 3
++++
+
+## 配置项说明
+
+# 使用 LOCAL 事务
+```yaml
+rules:
+ - !TRANSACTION
+ defaultType: LOCAL
+```
+
+# 使用 XA 事务
+```yaml
+rules:
+ - !TRANSACTION
+ defaultType: XA
+ providerType: Narayana
+```
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/yaml-config/rules/transaction.en.md b/docs/document/content/user-manual/shardingsphere-jdbc/yaml-config/rules/transaction.en.md
new file mode 100644
index 00000000000..912642ce898
--- /dev/null
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/yaml-config/rules/transaction.en.md
@@ -0,0 +1,21 @@
++++
+title = "Distributed Transaction"
+weight = 3
++++
+
+## Configuration Item Explanation
+
+LOCAL Model
+```yaml
+rules:
+ - !TRANSACTION
+ defaultType: LOCAL
+```
+
+XA Model
+```yaml
+rules:
+ - !TRANSACTION
+ defaultType: XA
+ providerType: Narayana
+```