新增MySQL和pg数据库的同步
This commit is contained in:
@@ -49,7 +49,7 @@ public class dbController {
|
||||
JdbcTemplate jdbcTemplate = DataSourceConfig.createJdbcTemplate(dbConfig);
|
||||
// 补充参数传递
|
||||
String querySql = "SELECT TABLE_NAME,TABLE_COMMENT FROM information_schema.tables WHERE TABLE_SCHEMA = ?";
|
||||
List<Map<String, Object>> result = jdbcTemplate.queryForList(querySql, dbConfig.getDbSchema());
|
||||
List<Map<String, Object>> result = jdbcTemplate.queryForList(querySql, dbConfig.getDbName());
|
||||
List<TabResult> data = result.stream()
|
||||
.map(row -> {
|
||||
String tableName = row.get("TABLE_NAME") != null ? row.get("TABLE_NAME").toString() : "";
|
||||
|
||||
Reference in New Issue
Block a user