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

feat(get): 添加快速获取首个SQLManager实例的方法。

This commit is contained in:
2023-01-05 19:18:17 +08:00
parent 054f9bb04c
commit ddf263c697
8 changed files with 16 additions and 8 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
<parent>
<artifactId>minesql-parent</artifactId>
<groupId>cc.carm.plugin</groupId>
<version>1.2.0</version>
<version>1.2.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>
@@ -12,7 +12,15 @@ import java.util.Optional;
* 入口类
*/
public interface SQLRegistry {
/**
* 获取原生注册的首个 SQLManager 实例
*
* @return {@link SQLManager} 实例
*/
default @Nullable SQLManager get() {
return get(null);
}
/**
* 获取原生注册的指定名称的 SQLManager 实例
*