Skip to content

Commit beadcb6

Browse files
committed
[Druid] Support quick query
1 parent dd54437 commit beadcb6

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

src/renderer/config/plugin/druid.config.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ export class DruidConfig implements BaseConfig {
88
connectionFetchAll: string;
99
databaseCreate: string;
1010
databaseDiskUsedRatio: string;
11-
databaseFetchAll: string;
11+
databaseFetchAll = `
12+
SELECT SCHEMA_NAME AS name
13+
FROM INFORMATION_SCHEMA.SCHEMATA
14+
`;
1215
databaseItems: string;
1316
databaseItemsFilterFuzzy: string;
1417
databaseItemsFilterPrecise: string;
@@ -21,7 +24,11 @@ export class DruidConfig implements BaseConfig {
2124
slowQueryFetchAll: string;
2225
stopProcessor: string;
2326
tableDiskUsedRatio: string;
24-
tableFetchAll: string;
27+
tableFetchAll = `
28+
SELECT TABLE_NAME AS name
29+
FROM INFORMATION_SCHEMA.TABLES
30+
WHERE TABLE_SCHEMA = '{0}'
31+
`;
2532
tableItems: string;
2633
tableItemsFilterFuzzy: string;
2734
tableItemsFilterPrecise: string;

0 commit comments

Comments
 (0)