feat: 新增数据库支持.
This commit is contained in:
12
pom.xml
12
pom.xml
@@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>com.serliunx.ddns</groupId>
|
||||
<artifactId>ddns-manager-lite</artifactId>
|
||||
<version>1.0.2</version>
|
||||
<version>1.0.3-alpha</version>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>8</maven.compiler.source>
|
||||
@@ -19,6 +19,8 @@
|
||||
<snakeyaml.version>1.30</snakeyaml.version>
|
||||
<aliyundns.sdk.version>3.0.14</aliyundns.sdk.version>
|
||||
<tencent.dnspod.sdk.version>3.1.1002</tencent.dnspod.sdk.version>
|
||||
<junit.version>4.13.2</junit.version>
|
||||
<sqlite.jdbc.version>3.47.0.0</sqlite.jdbc.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
@@ -55,9 +57,15 @@
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.13.2</version>
|
||||
<version>${junit.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<!-- sqlite-jdbc -->
|
||||
<dependency>
|
||||
<groupId>org.xerial</groupId>
|
||||
<artifactId>sqlite-jdbc</artifactId>
|
||||
<version>${sqlite.jdbc.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.serliunx.ddns.core.factory;
|
||||
|
||||
import com.serliunx.ddns.core.instance.Instance;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* 数据库示例工厂: 从数据库中(sqlite)存储、加载示例信息
|
||||
*
|
||||
* @author <a href="mailto:serliunx@yeah.net">SerLiunx</a>
|
||||
* @version 1.0.3
|
||||
* @since 2024/11/20
|
||||
*/
|
||||
public final class DatabaseInstanceFactory extends AbstractInstanceFactory {
|
||||
|
||||
@Override
|
||||
protected Set<Instance> load() {
|
||||
return Collections.emptySet();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user