diff --git a/pom.xml b/pom.xml
index a24a722..4d9ca07 100644
--- a/pom.xml
+++ b/pom.xml
@@ -21,6 +21,12 @@
mysql-connector-j
8.2.0
+
+ com.h2database
+ h2
+ 2.2.224
+ test
+
ch.qos.logback
logback-classic
diff --git a/src/main/java/space/caoshd/otone/builder/ColumnBuilder.java b/src/main/java/space/caoshd/otone/builder/ColumnBuilder.java
index ce7ca10..8a6f5e2 100644
--- a/src/main/java/space/caoshd/otone/builder/ColumnBuilder.java
+++ b/src/main/java/space/caoshd/otone/builder/ColumnBuilder.java
@@ -3,7 +3,8 @@ package space.caoshd.otone.builder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import space.caoshd.otone.entity.ColumnInfo;
-import space.caoshd.otone.helper.SqlUtils;
+import space.caoshd.otone.helper.SqlHelper;
+import space.caoshd.otone.util.CfgUtils;
import space.caoshd.otone.util.DBUtils;
import space.caoshd.otone.util.JsonUtils;
import space.caoshd.otone.util.StrUtils;
@@ -18,6 +19,8 @@ public class ColumnBuilder {
private static final Logger LOGGER = LoggerFactory.getLogger(ColumnBuilder.class);
+ private static final SqlHelper SQL_HELPER = new SqlHelper(CfgUtils.getSqlConfigFile());
+
private final String schemaName;
private final String tableName;
@@ -27,7 +30,7 @@ public class ColumnBuilder {
}
public List build() {
- String sql = SqlUtils.getColumnSql();
+ String sql = SQL_HELPER.getColumnSql();
List params = Arrays.asList(schemaName, tableName);
List