1
mirror of https://github.com/CarmJos/MineSQL.git synced 2026-06-14 05:11:08 +08:00

Compare commits

...

4 Commits

Author SHA1 Message Date
carm 3c45eb29bf fix(get): 修复获取首个Manager会出现报错的问题 2023-01-14 17:28:45 +08:00
carm 6456f0d2fe Revert "feat(support): 恢复Sponge代码"
This reverts commit 58bddd86aa.
2023-01-14 17:07:57 +08:00
carm 58bddd86aa feat(support): 恢复Sponge代码 2023-01-14 17:06:37 +08:00
carm 7dec1a1e5a doc(api): 修正Branch库的位置 2023-01-14 15:25:08 +08:00
10 changed files with 12 additions and 10 deletions
+1 -1
View File
@@ -13,7 +13,7 @@
<repository>
<id>MineSQL</id>
<name>GitHub Branch Repository</name>
<url>https://github.com/CarmJos/MineSQL/blob/repo/</url>
<url>https://raw.githubusercontent.com/CarmJos/MineSQL/repo/</url>
</repository>
</repositories>
```
+1 -1
View File
@@ -133,7 +133,7 @@ Properties 文件的文件名几位数据源的ID,允许为英文、数字、
<!--采用github分支依赖库,稳定更新快-->
<id>MineSQL</id>
<name>GitHub Branch Repository</name>
<url>https://github.com/CarmJos/MineSQL/blob/repo/</url>
<url>https://raw.githubusercontent.com/CarmJos/MineSQL/repo/</url>
</repository>
<repository>
+1 -1
View File
@@ -5,7 +5,7 @@
<parent>
<artifactId>minesql-parent</artifactId>
<groupId>cc.carm.plugin</groupId>
<version>1.2.1</version>
<version>1.2.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>
+1 -1
View File
@@ -5,7 +5,7 @@
<parent>
<artifactId>minesql-parent</artifactId>
<groupId>cc.carm.plugin</groupId>
<version>1.2.1</version>
<version>1.2.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<properties>
@@ -21,7 +21,9 @@ public class MineSQLRegistry implements SQLRegistry {
@Override
public @NotNull Optional<@Nullable SQLManager> getOptional(@Nullable String id) {
return Optional.of(this.managers.get(id));
if (id != null) return Optional.of(this.managers.get(id));
else if (managers.isEmpty()) return Optional.empty();
else return Optional.ofNullable(managers.values().iterator().next());
}
@Override
+1 -1
View File
@@ -5,7 +5,7 @@
<parent>
<artifactId>minesql-parent</artifactId>
<groupId>cc.carm.plugin</groupId>
<version>1.2.1</version>
<version>1.2.2</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
+1 -1
View File
@@ -5,7 +5,7 @@
<parent>
<artifactId>minesql-parent</artifactId>
<groupId>cc.carm.plugin</groupId>
<version>1.2.1</version>
<version>1.2.2</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
+1 -1
View File
@@ -5,7 +5,7 @@
<parent>
<artifactId>minesql-parent</artifactId>
<groupId>cc.carm.plugin</groupId>
<version>1.2.1</version>
<version>1.2.2</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
+1 -1
View File
@@ -5,7 +5,7 @@
<parent>
<artifactId>minesql-parent</artifactId>
<groupId>cc.carm.plugin</groupId>
<version>1.2.1</version>
<version>1.2.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<properties>
+1 -1
View File
@@ -24,7 +24,7 @@
<groupId>cc.carm.plugin</groupId>
<artifactId>minesql-parent</artifactId>
<packaging>pom</packaging>
<version>1.2.1</version>
<version>1.2.2</version>
<modules>
<module>api</module>
<module>core</module>