v1.2.1
This commit is contained in:
parent
172390c46b
commit
afea3cf71a
6
pom.xml
6
pom.xml
|
@ -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>
|
|
@ -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;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user