mirror of
https://github.com/vran-dev/databasir.git
synced 2025-08-09 06:10:06 +08:00
support mock data (#67)
* feat:support generate mock sql * feat: update frontend resources * feat: update readme * fix: check failed
This commit is contained in:
@@ -17,6 +17,8 @@ public class ColumnMeta {
|
||||
|
||||
private String type;
|
||||
|
||||
private Integer dataType;
|
||||
|
||||
/**
|
||||
* if default value is empty string, will be converted to ''.
|
||||
*/
|
||||
|
@@ -67,8 +67,10 @@ public class JdbcColumnMetaRepository implements ColumnMetaRepository {
|
||||
Integer columnSize = columnsResult.getInt("COLUMN_SIZE");
|
||||
String columnType = columnsResult.getString("TYPE_NAME");
|
||||
String columnComment = columnsResult.getString("REMARKS");
|
||||
int dataType = columnsResult.getInt("DATA_TYPE");
|
||||
ColumnMeta columnMeta = ColumnMeta.builder()
|
||||
.name(columnName)
|
||||
.dataType(dataType)
|
||||
.type(columnType)
|
||||
.size(columnSize)
|
||||
.decimalDigits(decimalDigits)
|
||||
@@ -80,7 +82,6 @@ public class JdbcColumnMetaRepository implements ColumnMetaRepository {
|
||||
.build();
|
||||
columnDocs.add(columnMeta);
|
||||
}
|
||||
|
||||
}
|
||||
return columnDocs;
|
||||
}
|
||||
|
Reference in New Issue
Block a user