.
This commit is contained in:
@@ -32,7 +32,7 @@ public class _DbService extends BaseService {
|
||||
dbKit = MetaKit.getDbKit(dbPlatId, "");
|
||||
}
|
||||
|
||||
List<Map> list = dbKit.findList("SHOW DATABASES;", Map.class);
|
||||
List<Map> list = dbKit.queryList("SHOW DATABASES;", Map.class);
|
||||
|
||||
Stream<String> database = list.stream().map(x -> String.valueOf(x.get("Database")));
|
||||
|
||||
@@ -44,7 +44,7 @@ public class _DbService extends BaseService {
|
||||
DbKit dbKit = MetaKit.getDbKit(dbPlatId, "");
|
||||
|
||||
String sql = tplKit.getTpl("db.table_list", Kv.of("catalog", catalog).set("tables", tables));
|
||||
return dbKit.findList(sql, Table.class);
|
||||
return dbKit.queryList(sql, Table.class);
|
||||
}
|
||||
|
||||
@RestMapping(ignore = true)
|
||||
@@ -77,8 +77,8 @@ public class _DbService extends BaseService {
|
||||
String sql = tplKit.getTpl("db.table_list", Kv.of("table", tableName));
|
||||
String columnSql = String.format("SHOW FULL COLUMNS FROM %s.`%s`", catalog, tableName);
|
||||
|
||||
CompletableFuture<Table> tableFuture = dbKit.findfirstAsync(sql, Table.class);
|
||||
CompletableFuture<List<Column>> columnFuture = dbKit.findListAsync(columnSql, Column.class);
|
||||
CompletableFuture<Table> tableFuture = dbKit.findAsync(sql, Table.class);
|
||||
CompletableFuture<List<Column>> columnFuture = dbKit.queryListAsync(columnSql, Column.class);
|
||||
|
||||
try {
|
||||
Table table = tableFuture.get();
|
||||
|
||||
Reference in New Issue
Block a user