diff --git a/README-CN.md b/README-CN.md index 1f51a00..936ea9b 100644 --- a/README-CN.md +++ b/README-CN.md @@ -14,7 +14,7 @@ ## 贡献 -我们欢迎任何人来贡献,感谢所有的[贡献者](https://github.com/oceanbase/ob-example/graphs/contributors)! +我们欢迎任何人来贡献,感谢所有的[贡献者](https://github.com/oceanbase/ob-samples/graphs/contributors)! 在一个示例中,请确保包含以下内容 diff --git a/golang/go-sql-driver/go.mod b/golang/go-sql-driver/go.mod index fcf0eff..d054619 100644 --- a/golang/go-sql-driver/go.mod +++ b/golang/go-sql-driver/go.mod @@ -1,4 +1,4 @@ -module github.com/oceanbase/ob-example/golang-go-sql-driver +module github.com/oceanbase/ob-samples/golang-go-sql-driver go 1.19 diff --git a/java/mysql-connector-java/README-CN.md b/java/mysql-connector-java/README-CN.md index d14cc39..ff8ef89 100644 --- a/java/mysql-connector-java/README-CN.md +++ b/java/mysql-connector-java/README-CN.md @@ -18,7 +18,7 @@ 使用 MySQL 驱动时,需要提供相应的 JDBC Url,详细信息请参考 [MySQL文档](https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-reference-jdbc-url-format.html)。 -以 [MySqlConnectorTest.java](src/main/java/com/oceanbase/example/MySqlConnectorTest.java) 为例 +以 [MySqlConnectorTest.java](src/main/java/com/oceanbase/samples/MySqlConnectorTest.java) 为例 ```java import java.sql.Connection; diff --git a/java/mysql-connector-java/README.md b/java/mysql-connector-java/README.md index 6d06466..9cf0a2c 100644 --- a/java/mysql-connector-java/README.md +++ b/java/mysql-connector-java/README.md @@ -18,7 +18,7 @@ Add MySQL JDBC driver to POM. When using the MySQL driver, you need to provide the JDBC Url. Please refer to [MySQL Documentation](https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-reference-jdbc-url-format.html) for details. -Take [MySqlConnectorTest.java](src/main/java/com/oceanbase/example/MySqlConnectorTest.java) code as an example. +Take [MySqlConnectorTest.java](src/main/java/com/oceanbase/samples/MySqlConnectorTest.java) code as an example. ```java import java.sql.Connection; diff --git a/java/mysql-connector-java/pom.xml b/java/mysql-connector-java/pom.xml index df91814..7f55f1e 100644 --- a/java/mysql-connector-java/pom.xml +++ b/java/mysql-connector-java/pom.xml @@ -4,11 +4,11 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - com.oceanbase.example + com.oceanbase.samples mysql-connector-java 1.0-SNAPSHOT - ob-example-mysql-connector-java + ob-samples-mysql-connector-java UTF-8 diff --git a/java/mysql-connector-java/run.sh b/java/mysql-connector-java/run.sh index 67c9ef4..280eee9 100644 --- a/java/mysql-connector-java/run.sh +++ b/java/mysql-connector-java/run.sh @@ -1,2 +1,2 @@ #!/usr/bin/env bash -mvn clean install exec:java -Dexec.cleanupDaemonThreads=false -Dexec.mainClass=com.oceanbase.example.MySqlConnectorTest +mvn clean install exec:java -Dexec.cleanupDaemonThreads=false -Dexec.mainClass=com.oceanbase.samples.MySqlConnectorTest diff --git a/java/mysql-connector-java/src/main/java/com/oceanbase/example/MySqlConnectorTest.java b/java/mysql-connector-java/src/main/java/com/oceanbase/samples/MySqlConnectorTest.java similarity index 98% rename from java/mysql-connector-java/src/main/java/com/oceanbase/example/MySqlConnectorTest.java rename to java/mysql-connector-java/src/main/java/com/oceanbase/samples/MySqlConnectorTest.java index b76df99..3571414 100644 --- a/java/mysql-connector-java/src/main/java/com/oceanbase/example/MySqlConnectorTest.java +++ b/java/mysql-connector-java/src/main/java/com/oceanbase/samples/MySqlConnectorTest.java @@ -1,4 +1,4 @@ -package com.oceanbase.example; +package com.oceanbase.samples; import java.sql.Connection; import java.sql.DriverManager; diff --git a/java/oceanbase-client/README-CN.md b/java/oceanbase-client/README-CN.md index 375f80e..32c9210 100644 --- a/java/oceanbase-client/README-CN.md +++ b/java/oceanbase-client/README-CN.md @@ -20,7 +20,7 @@ 使用 OceanBase 驱动时,需要提供相应的 JDBC Url,详细信息请参考 [OceanBase Connector/J 文档](https://www.oceanbase.com/docs/oceanbase-connector-j-cn)。 -以 [InsertAndSelectExample.java](src/main/java/com/oceanbase/example/InsertAndSelectExample.java) 为例 +以 [InsertAndSelectExample.java](src/main/java/com/oceanbase/samples/InsertAndSelectExample.java) 为例 ```java import java.sql.Connection; diff --git a/java/oceanbase-client/README.md b/java/oceanbase-client/README.md index 15474fb..c1ef575 100644 --- a/java/oceanbase-client/README.md +++ b/java/oceanbase-client/README.md @@ -20,7 +20,7 @@ Add OceanBase JDBC driver to POM. When using the OceanBase driver, you need to provide the JDBC Url. Please refer to [OceanBase Connector/J Documentation](https://www.oceanbase.com/docs/oceanbase-connector-j-cn) for details. -Take [InsertAndSelectExample.java](src/main/java/com/oceanbase/example/InsertAndSelectExample.java) code as an example. +Take [InsertAndSelectExample.java](src/main/java/com/oceanbase/samples/InsertAndSelectExample.java) code as an example. ```java import java.sql.Connection; diff --git a/java/oceanbase-client/pom.xml b/java/oceanbase-client/pom.xml index 8168a3d..0b9346a 100644 --- a/java/oceanbase-client/pom.xml +++ b/java/oceanbase-client/pom.xml @@ -4,11 +4,11 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - com.oceanbase.example + com.oceanbase.samples oceanbase-client 1.0-SNAPSHOT - ob-example-oceanbase-client + ob-samples-oceanbase-client UTF-8 diff --git a/java/oceanbase-client/run.sh b/java/oceanbase-client/run.sh index d7d5238..3b11de5 100644 --- a/java/oceanbase-client/run.sh +++ b/java/oceanbase-client/run.sh @@ -1,3 +1,3 @@ #!/usr/bin/env bash -mvn clean install exec:java -Dexec.cleanupDaemonThreads=false -Dexec.mainClass=com.oceanbase.example.InsertAndSelectExample -mvn clean install exec:java -Dexec.cleanupDaemonThreads=false -Dexec.mainClass=com.oceanbase.example.OceanBaseClientTest +mvn clean install exec:java -Dexec.cleanupDaemonThreads=false -Dexec.mainClass=com.oceanbase.samples.InsertAndSelectExample +mvn clean install exec:java -Dexec.cleanupDaemonThreads=false -Dexec.mainClass=com.oceanbase.samples.OceanBaseClientTest diff --git a/java/oceanbase-client/src/main/java/com/oceanbase/example/InsertAndSelectExample.java b/java/oceanbase-client/src/main/java/com/oceanbase/samples/InsertAndSelectExample.java similarity index 98% rename from java/oceanbase-client/src/main/java/com/oceanbase/example/InsertAndSelectExample.java rename to java/oceanbase-client/src/main/java/com/oceanbase/samples/InsertAndSelectExample.java index 791641b..643b5ee 100644 --- a/java/oceanbase-client/src/main/java/com/oceanbase/example/InsertAndSelectExample.java +++ b/java/oceanbase-client/src/main/java/com/oceanbase/samples/InsertAndSelectExample.java @@ -1,4 +1,4 @@ -package com.oceanbase.example; +package com.oceanbase.samples; import java.sql.Connection; import java.sql.DriverManager; diff --git a/java/oceanbase-client/src/main/java/com/oceanbase/example/OceanBaseClientTest.java b/java/oceanbase-client/src/main/java/com/oceanbase/samples/OceanBaseClientTest.java similarity index 98% rename from java/oceanbase-client/src/main/java/com/oceanbase/example/OceanBaseClientTest.java rename to java/oceanbase-client/src/main/java/com/oceanbase/samples/OceanBaseClientTest.java index c863158..53d59bc 100644 --- a/java/oceanbase-client/src/main/java/com/oceanbase/example/OceanBaseClientTest.java +++ b/java/oceanbase-client/src/main/java/com/oceanbase/samples/OceanBaseClientTest.java @@ -1,4 +1,4 @@ -package com.oceanbase.example; +package com.oceanbase.samples; import java.sql.Connection; import java.sql.DriverManager;