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 e65aa37ec86 Update the module hierarchy for the parser example (#23156)
e65aa37ec86 is described below
commit e65aa37ec86975f10b41520bd5be9ac2dd514985
Author: Guocheng Tang <[email protected]>
AuthorDate: Sun Jan 1 17:06:17 2023 +0800
Update the module hierarchy for the parser example (#23156)
---
examples/README.md | 3 +-
examples/README_ZH.md | 3 +-
.../shardingsphere-parser-example/pom.xml | 61 ----------------------
examples/pom.xml | 3 +-
.../pom.xml | 38 +++++++++++---
.../mysql/format/MySQLParserFormatExample.java | 0
.../statement/MySQLParserStatementExample.java | 0
.../statement/OpenGaussParserStatementExample.java | 0
.../statement/OracleParserStatementExample.java | 0
.../PostgreSQLParserStatementExample.java | 0
.../statement/SQL92ParserStatementExample.java | 0
.../statement/SQLServerParserStatementExample.java | 0
12 files changed, 35 insertions(+), 73 deletions(-)
diff --git a/examples/README.md b/examples/README.md
index cf698433a0e..1b40916951a 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -40,9 +40,8 @@ shardingsphere-example
│ ├── example-raw-jdbc
│ ├── example-spring-jpa
│ └── example-spring-mybatis
- ├── other-example
- │ └── shardingsphere-parser-example
├── shardingsphere-example-generator
+ ├── shardingsphere-parser-example
├── shardingsphere-proxy-example
│ ├── shardingsphere-proxy-boot-mybatis-example
│ ├── shardingsphere-proxy-distsql-example
diff --git a/examples/README_ZH.md b/examples/README_ZH.md
index dfa363f07d9..0589f2529d5 100644
--- a/examples/README_ZH.md
+++ b/examples/README_ZH.md
@@ -41,9 +41,8 @@ shardingsphere-example
│ ├── example-raw-jdbc
│ ├── example-spring-jpa
│ └── example-spring-mybatis
- ├── other-example
- │ └── shardingsphere-parser-example
├── shardingsphere-example-generator
+ ├── shardingsphere-parser-example
├── shardingsphere-proxy-example
│ ├── shardingsphere-proxy-boot-mybatis-example
│ ├── shardingsphere-proxy-distsql-example
diff --git a/examples/other-example/shardingsphere-parser-example/pom.xml
b/examples/other-example/shardingsphere-parser-example/pom.xml
deleted file mode 100644
index 5a2cb06c21e..00000000000
--- a/examples/other-example/shardingsphere-parser-example/pom.xml
+++ /dev/null
@@ -1,61 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- ~ Licensed to the Apache Software Foundation (ASF) under one or more
- ~ contributor license agreements. See the NOTICE file distributed with
- ~ this work for additional information regarding copyright ownership.
- ~ The ASF licenses this file to You under the Apache License, Version 2.0
- ~ (the "License"); you may not use this file except in compliance with
- ~ the License. You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing, software
- ~ distributed under the License is distributed on an "AS IS" BASIS,
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ~ See the License for the specific language governing permissions and
- ~ limitations under the License.
- -->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.apache.shardingsphere.example</groupId>
- <artifactId>other-example</artifactId>
- <version>${revision}</version>
- </parent>
- <artifactId>shardingsphere-parser-example</artifactId>
- <name>${project.artifactId}</name>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.shardingsphere</groupId>
- <artifactId>shardingsphere-sql-parser-engine</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.shardingsphere</groupId>
- <artifactId>shardingsphere-sql-parser-mysql</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.shardingsphere</groupId>
- <artifactId>shardingsphere-sql-parser-oracle</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.shardingsphere</groupId>
- <artifactId>shardingsphere-sql-parser-sql92</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.shardingsphere</groupId>
- <artifactId>shardingsphere-sql-parser-postgresql</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.shardingsphere</groupId>
- <artifactId>shardingsphere-sql-parser-sqlserver</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.shardingsphere</groupId>
- <artifactId>shardingsphere-sql-parser-opengauss</artifactId>
- </dependency>
- </dependencies>
-</project>
diff --git a/examples/pom.xml b/examples/pom.xml
index c95961b85b2..aa28909ea78 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -28,9 +28,8 @@
<modules>
<module>example-core</module>
- <module>other-example</module>
<module>shardingsphere-proxy-example</module>
-
+ <module>shardingsphere-parser-example</module>
<module>shardingsphere-example-generator</module>
</modules>
diff --git a/examples/other-example/pom.xml
b/examples/shardingsphere-parser-example/pom.xml
similarity index 67%
rename from examples/other-example/pom.xml
rename to examples/shardingsphere-parser-example/pom.xml
index cde5ea2e2b0..51ee70cf3be 100644
--- a/examples/other-example/pom.xml
+++ b/examples/shardingsphere-parser-example/pom.xml
@@ -25,14 +25,40 @@
<artifactId>shardingsphere-examples</artifactId>
<version>${revision}</version>
</parent>
- <artifactId>other-example</artifactId>
- <packaging>pom</packaging>
+ <artifactId>shardingsphere-parser-example</artifactId>
<name>${project.artifactId}</name>
- <modules>
- <module>shardingsphere-parser-example</module>
- </modules>
-
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.shardingsphere</groupId>
+ <artifactId>shardingsphere-sql-parser-engine</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.shardingsphere</groupId>
+ <artifactId>shardingsphere-sql-parser-mysql</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.shardingsphere</groupId>
+ <artifactId>shardingsphere-sql-parser-oracle</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.shardingsphere</groupId>
+ <artifactId>shardingsphere-sql-parser-sql92</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.shardingsphere</groupId>
+ <artifactId>shardingsphere-sql-parser-postgresql</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.shardingsphere</groupId>
+ <artifactId>shardingsphere-sql-parser-sqlserver</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.shardingsphere</groupId>
+ <artifactId>shardingsphere-sql-parser-opengauss</artifactId>
+ </dependency>
+ </dependencies>
+
<build>
<pluginManagement>
<plugins>
diff --git
a/examples/other-example/shardingsphere-parser-example/src/main/java/org/apache/shardingsphere/example/parser/mysql/format/MySQLParserFormatExample.java
b/examples/shardingsphere-parser-example/src/main/java/org/apache/shardingsphere/example/parser/mysql/format/MySQLParserFormatExample.java
similarity index 100%
rename from
examples/other-example/shardingsphere-parser-example/src/main/java/org/apache/shardingsphere/example/parser/mysql/format/MySQLParserFormatExample.java
rename to
examples/shardingsphere-parser-example/src/main/java/org/apache/shardingsphere/example/parser/mysql/format/MySQLParserFormatExample.java
diff --git
a/examples/other-example/shardingsphere-parser-example/src/main/java/org/apache/shardingsphere/example/parser/mysql/statement/MySQLParserStatementExample.java
b/examples/shardingsphere-parser-example/src/main/java/org/apache/shardingsphere/example/parser/mysql/statement/MySQLParserStatementExample.java
similarity index 100%
rename from
examples/other-example/shardingsphere-parser-example/src/main/java/org/apache/shardingsphere/example/parser/mysql/statement/MySQLParserStatementExample.java
rename to
examples/shardingsphere-parser-example/src/main/java/org/apache/shardingsphere/example/parser/mysql/statement/MySQLParserStatementExample.java
diff --git
a/examples/other-example/shardingsphere-parser-example/src/main/java/org/apache/shardingsphere/example/parser/opengauss/statement/OpenGaussParserStatementExample.java
b/examples/shardingsphere-parser-example/src/main/java/org/apache/shardingsphere/example/parser/opengauss/statement/OpenGaussParserStatementExample.java
similarity index 100%
rename from
examples/other-example/shardingsphere-parser-example/src/main/java/org/apache/shardingsphere/example/parser/opengauss/statement/OpenGaussParserStatementExample.java
rename to
examples/shardingsphere-parser-example/src/main/java/org/apache/shardingsphere/example/parser/opengauss/statement/OpenGaussParserStatementExample.java
diff --git
a/examples/other-example/shardingsphere-parser-example/src/main/java/org/apache/shardingsphere/example/parser/oracle/statement/OracleParserStatementExample.java
b/examples/shardingsphere-parser-example/src/main/java/org/apache/shardingsphere/example/parser/oracle/statement/OracleParserStatementExample.java
similarity index 100%
rename from
examples/other-example/shardingsphere-parser-example/src/main/java/org/apache/shardingsphere/example/parser/oracle/statement/OracleParserStatementExample.java
rename to
examples/shardingsphere-parser-example/src/main/java/org/apache/shardingsphere/example/parser/oracle/statement/OracleParserStatementExample.java
diff --git
a/examples/other-example/shardingsphere-parser-example/src/main/java/org/apache/shardingsphere/example/parser/postgresql/statement/PostgreSQLParserStatementExample.java
b/examples/shardingsphere-parser-example/src/main/java/org/apache/shardingsphere/example/parser/postgresql/statement/PostgreSQLParserStatementExample.java
similarity index 100%
rename from
examples/other-example/shardingsphere-parser-example/src/main/java/org/apache/shardingsphere/example/parser/postgresql/statement/PostgreSQLParserStatementExample.java
rename to
examples/shardingsphere-parser-example/src/main/java/org/apache/shardingsphere/example/parser/postgresql/statement/PostgreSQLParserStatementExample.java
diff --git
a/examples/other-example/shardingsphere-parser-example/src/main/java/org/apache/shardingsphere/example/parser/sql92/statement/SQL92ParserStatementExample.java
b/examples/shardingsphere-parser-example/src/main/java/org/apache/shardingsphere/example/parser/sql92/statement/SQL92ParserStatementExample.java
similarity index 100%
rename from
examples/other-example/shardingsphere-parser-example/src/main/java/org/apache/shardingsphere/example/parser/sql92/statement/SQL92ParserStatementExample.java
rename to
examples/shardingsphere-parser-example/src/main/java/org/apache/shardingsphere/example/parser/sql92/statement/SQL92ParserStatementExample.java
diff --git
a/examples/other-example/shardingsphere-parser-example/src/main/java/org/apache/shardingsphere/example/parser/sqlserver/statement/SQLServerParserStatementExample.java
b/examples/shardingsphere-parser-example/src/main/java/org/apache/shardingsphere/example/parser/sqlserver/statement/SQLServerParserStatementExample.java
similarity index 100%
rename from
examples/other-example/shardingsphere-parser-example/src/main/java/org/apache/shardingsphere/example/parser/sqlserver/statement/SQLServerParserStatementExample.java
rename to
examples/shardingsphere-parser-example/src/main/java/org/apache/shardingsphere/example/parser/sqlserver/statement/SQLServerParserStatementExample.java