mirror of
https://github.com/vran-dev/databasir.git
synced 2025-09-09 03:56:20 +08:00
feat: support get Table VIEW (#244)
* feat: support get Table VIEW * feat:update github action
This commit is contained in:
2
.github/workflows/auto-check.yml
vendored
2
.github/workflows/auto-check.yml
vendored
@@ -6,7 +6,7 @@ on:
|
||||
- 'common/**'
|
||||
- 'core/**'
|
||||
- 'dao/**'
|
||||
- 'plugin/**'
|
||||
- 'meta/**'
|
||||
- 'gradle/**'
|
||||
- 'config/**'
|
||||
|
||||
|
@@ -38,8 +38,9 @@ public class JdbcTableMetaProvider implements TableMetaProvider {
|
||||
private List<TableMeta> doSelect(Connection connection, Condition condition) throws SQLException {
|
||||
List<TableMeta> tableMetas = new ArrayList<>();
|
||||
String databaseName = condition.getDatabaseName();
|
||||
String[] tableTypes = {"TABLE", "VIEW"};
|
||||
ResultSet tablesResult = connection.getMetaData()
|
||||
.getTables(databaseName, condition.getSchemaName(), null, new String[]{"TABLE"});
|
||||
.getTables(databaseName, condition.getSchemaName(), null, tableTypes);
|
||||
try {
|
||||
while (tablesResult.next()) {
|
||||
String tableName = tablesResult.getString("TABLE_NAME");
|
||||
|
Reference in New Issue
Block a user