Skip to content

Commit ddf263c

Browse files
committed
feat(get): 添加快速获取首个SQLManager实例的方法。
1 parent 054f9bb commit ddf263c

File tree

8 files changed

+16
-8
lines changed

8 files changed

+16
-8
lines changed

api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>minesql-parent</artifactId>
77
<groupId>cc.carm.plugin</groupId>
8-
<version>1.2.0</version>
8+
<version>1.2.1</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

api/src/main/java/cc/carm/plugin/minesql/api/SQLRegistry.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,15 @@
1212
* 入口类
1313
*/
1414
public interface SQLRegistry {
15-
15+
/**
16+
* 获取原生注册的首个 SQLManager 实例
17+
*
18+
* @return {@link SQLManager} 实例
19+
*/
20+
default @Nullable SQLManager get() {
21+
return get(null);
22+
}
23+
1624
/**
1725
* 获取原生注册的指定名称的 SQLManager 实例
1826
*

core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>minesql-parent</artifactId>
77
<groupId>cc.carm.plugin</groupId>
8-
<version>1.2.0</version>
8+
<version>1.2.1</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111
<properties>

platforms/bukkit/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>minesql-parent</artifactId>
77
<groupId>cc.carm.plugin</groupId>
8-
<version>1.2.0</version>
8+
<version>1.2.1</version>
99
<relativePath>../../pom.xml</relativePath>
1010
</parent>
1111
<modelVersion>4.0.0</modelVersion>

platforms/bungee/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>minesql-parent</artifactId>
77
<groupId>cc.carm.plugin</groupId>
8-
<version>1.2.0</version>
8+
<version>1.2.1</version>
99
<relativePath>../../pom.xml</relativePath>
1010
</parent>
1111
<modelVersion>4.0.0</modelVersion>

platforms/velocity/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>minesql-parent</artifactId>
77
<groupId>cc.carm.plugin</groupId>
8-
<version>1.2.0</version>
8+
<version>1.2.1</version>
99
<relativePath>../../pom.xml</relativePath>
1010
</parent>
1111
<modelVersion>4.0.0</modelVersion>

plugin/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>minesql-parent</artifactId>
77
<groupId>cc.carm.plugin</groupId>
8-
<version>1.2.0</version>
8+
<version>1.2.1</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111
<properties>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<groupId>cc.carm.plugin</groupId>
2525
<artifactId>minesql-parent</artifactId>
2626
<packaging>pom</packaging>
27-
<version>1.2.0</version>
27+
<version>1.2.1</version>
2828
<modules>
2929
<module>api</module>
3030
<module>core</module>

0 commit comments

Comments
 (0)