This commit is contained in:
YuTian 2024-07-16 18:00:53 +08:00
parent 172390c46b
commit afea3cf71a
2 changed files with 25 additions and 0 deletions

View File

@ -90,6 +90,12 @@
<optional>true</optional> <optional>true</optional>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<!-- https://mvnrepository.com/artifact/com.h2database/h2 -->
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>2.1.214</version>
</dependency>
</dependencies> </dependencies>
</project> </project>

View File

@ -0,0 +1,19 @@
package com.io.yutian.aulib.sql.util;
public enum DatabaseDriverType {
MYSQL("com.mysql.jdbc.Driver"),
SQLITE("org.sqlite.JDBC"),
H2("org.h2.Driver");
private String driverClassName;
DatabaseDriverType(String driverClassName) {
this.driverClassName = driverClassName;
}
public String getDriverClassName() {
return driverClassName;
}
}