forked from lxm_tools/screw
优化代码以支持对文档数据库解析.
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -7,7 +7,7 @@
|
||||
<groupId>cn.smallbun.screw</groupId>
|
||||
<artifactId>screw</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<version>1.0.5</version>
|
||||
<version>1.0.6-SNAPSHOT</version>
|
||||
<inceptionYear>2020</inceptionYear>
|
||||
<name>screw</name>
|
||||
<description>简洁好用的数据库表结构文档生成工具</description>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<groupId>cn.smallbun.screw</groupId>
|
||||
<artifactId>screw</artifactId>
|
||||
<version>1.0.5</version>
|
||||
<version>1.0.6-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
@@ -93,4 +93,9 @@ public class ColumnModel implements Serializable {
|
||||
* 说明
|
||||
*/
|
||||
private String remarks;
|
||||
|
||||
/**
|
||||
* 嵌套数据信息(用于文档数据库)
|
||||
*/
|
||||
private TableModel nestedTable;
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ public abstract class AbstractProcess implements Process {
|
||||
*
|
||||
* @param configuration {@link Configuration}
|
||||
*/
|
||||
AbstractProcess(Configuration configuration) {
|
||||
protected AbstractProcess(Configuration configuration) {
|
||||
Assert.notNull(configuration, "Configuration can not be empty!");
|
||||
this.config = configuration;
|
||||
}
|
||||
|
||||
@@ -44,7 +44,6 @@ import cn.smallbun.screw.core.util.Assert;
|
||||
import cn.smallbun.screw.core.util.CollectionUtils;
|
||||
import cn.smallbun.screw.core.util.ExceptionUtils;
|
||||
import cn.smallbun.screw.core.util.JdbcUtils;
|
||||
import dm.jdbc.driver.DmdbConnection;
|
||||
|
||||
/**
|
||||
* 达梦数据库查询
|
||||
@@ -136,14 +135,7 @@ public class DmDataBaseQuery extends AbstractDatabaseQuery {
|
||||
*/
|
||||
@Override
|
||||
public String getSchema() throws QueryException {
|
||||
try {
|
||||
String schema;
|
||||
DmdbConnection conn = (DmdbConnection) getMetaData().getConnection();
|
||||
schema = conn.getUserName();
|
||||
return schema;
|
||||
} catch (SQLException e) {
|
||||
throw ExceptionUtils.mpe(e);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<artifactId>screw</artifactId>
|
||||
<groupId>cn.smallbun.screw</groupId>
|
||||
<version>1.0.5</version>
|
||||
<version>1.0.6-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<groupId>cn.smallbun.screw</groupId>
|
||||
<artifactId>screw</artifactId>
|
||||
<version>1.0.5</version>
|
||||
<version>1.0.6-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
Reference in New Issue
Block a user