You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by tu...@apache.org on 2022/06/01 09:00:04 UTC

[shardingsphere] branch master updated: Add document for PostgreSQL and openGauss schema (#18129)

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

tuichenchuxin 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 72fdff0f2bd Add document for PostgreSQL and openGauss schema (#18129)
72fdff0f2bd is described below

commit 72fdff0f2bd2e5f8a98881ab907a8ed44e4894d4
Author: Zhengqiang Duan <du...@apache.org>
AuthorDate: Wed Jun 1 16:59:57 2022 +0800

    Add document for PostgreSQL and openGauss schema (#18129)
---
 docs/document/content/features/sharding/use-norms/sql.cn.md           | 1 +
 docs/document/content/features/sharding/use-norms/sql.en.md           | 1 +
 .../java/org/apache/shardingsphere/sharding/rule/ShardingRule.java    | 4 ++--
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/docs/document/content/features/sharding/use-norms/sql.cn.md b/docs/document/content/features/sharding/use-norms/sql.cn.md
index b5656d6a885..2a6d9ce3529 100644
--- a/docs/document/content/features/sharding/use-norms/sql.cn.md
+++ b/docs/document/content/features/sharding/use-norms/sql.cn.md
@@ -12,6 +12,7 @@ weight = 1
 
 全面支持 DML、DDL、DCL、TCL 和常用 DAL。
 支持分页、去重、排序、分组、聚合、表关联等复杂查询。
+支持 PostgreSQL 和 openGauss 数据库 SCHEMA DDL 和 DML 语句。 
 
 #### 常规查询
 
diff --git a/docs/document/content/features/sharding/use-norms/sql.en.md b/docs/document/content/features/sharding/use-norms/sql.en.md
index e8d234bb5ef..9e12c00eb22 100644
--- a/docs/document/content/features/sharding/use-norms/sql.en.md
+++ b/docs/document/content/features/sharding/use-norms/sql.en.md
@@ -12,6 +12,7 @@ Compatible with all regular SQL when **routing to single data node**;
 
 Fully support DML, DDL, DCL, TCL and most regular DAL.
 Support complex query with pagination, DISTINCT, ORDER BY, GROUP BY, aggregation and table JOIN.
+Support PostgreSQL and openGauss database SCHEMA DDL and DML statements.
 
 #### Regular Query
 
diff --git a/shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-core/src/main/java/org/apache/shardingsphere/sharding/rule/ShardingRule.java b/shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-core/src/main/java/org/apache/shardingsphere/sharding/rule/ShardingRule.java
index cdf6aa2d37c..35c707036d3 100644
--- a/shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-core/src/main/java/org/apache/shardingsphere/sharding/rule/ShardingRule.java
+++ b/shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-core/src/main/java/org/apache/shardingsphere/sharding/rule/ShardingRule.java
@@ -266,7 +266,7 @@ public final class ShardingRule implements SchemaRule, DataNodeContainedRule, Ta
         return result;
     }
     
-    private Map<String, String> getLogicTableReplaceTablePrefixMap(final Collection<ShardingTableRuleConfiguration> tables, 
+    private Map<String, String> getLogicTableReplaceTablePrefixMap(final Collection<ShardingTableRuleConfiguration> tables,
                                                                    final Collection<ShardingAutoTableRuleConfiguration> autoTables) {
         Map<String, String> result = new LinkedHashMap<>(tables.size() + autoTables.size(), 1);
         for (ShardingTableRuleConfiguration each : tables) {
@@ -282,7 +282,7 @@ public final class ShardingRule implements SchemaRule, DataNodeContainedRule, Ta
         return result;
     }
     
-    private BindingTableRule createBindingTableRule(final String bindingTableGroup, final Map<String, TableRule> tableRules, 
+    private BindingTableRule createBindingTableRule(final String bindingTableGroup, final Map<String, TableRule> tableRules,
                                                     final Map<String, String> logicTableReplaceTablePrefixMap) {
         BindingTableRule result = new BindingTableRule();
         for (String each : Splitter.on(",").trimResults().splitToList(bindingTableGroup)) {