From afea3cf71a6024d7ddff1fa70d2594be064b8d96 Mon Sep 17 00:00:00 2001
From: YuTian <2953516620@qq.com>
Date: Tue, 16 Jul 2024 18:00:53 +0800
Subject: [PATCH] v1.2.1
---
pom.xml | 6 ++++++
.../aulib/sql/util/DatabaseDriverType.java | 19 +++++++++++++++++++
2 files changed, 25 insertions(+)
create mode 100644 src/main/java/com/io/yutian/aulib/sql/util/DatabaseDriverType.java
diff --git a/pom.xml b/pom.xml
index 1c43308..4c4a974 100644
--- a/pom.xml
+++ b/pom.xml
@@ -90,6 +90,12 @@
true
compile
+
+
+ com.h2database
+ h2
+ 2.1.214
+
\ No newline at end of file
diff --git a/src/main/java/com/io/yutian/aulib/sql/util/DatabaseDriverType.java b/src/main/java/com/io/yutian/aulib/sql/util/DatabaseDriverType.java
new file mode 100644
index 0000000..b68ef2a
--- /dev/null
+++ b/src/main/java/com/io/yutian/aulib/sql/util/DatabaseDriverType.java
@@ -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;
+ }
+
+}