File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,9 @@ export default async function createResource(args) {
14
14
import { admin } from './${ instance . file } .js';
15
15
export async function exec() {
16
16
await admin.discoverDatabases();
17
- return await admin.getAllTables();
17
+ const allTables = await admin.getAllTables();
18
+ setTimeout(process.exit);
19
+ return allTables;
18
20
}
19
21
` ) ;
20
22
@@ -34,7 +36,9 @@ export default async function createResource(args) {
34
36
import { admin } from './${ instance . file } .js';
35
37
export async function exec() {
36
38
await admin.discoverDatabases();
37
- return await admin.getAllColumnsInTable("${ table . table } ");
39
+ const columns = await admin.getAllColumnsInTable("${ table . table } ");
40
+ setTimeout(process.exit);
41
+ return columns;
38
42
}
39
43
` ) ;
40
44
console . log ( "🪲 Found columns:" , columns ) ;
Original file line number Diff line number Diff line change @@ -391,7 +391,6 @@ class AdminForth implements IAdminForth {
391
391
// console.log(`Connector ${dataSourceId} does not have getAllTables method`);
392
392
results [ dataSourceId ] = [ ] ;
393
393
}
394
- await connector . close ( ) ;
395
394
} )
396
395
) ;
397
396
@@ -420,7 +419,6 @@ class AdminForth implements IAdminForth {
420
419
} else {
421
420
results [ dataSourceId ] = [ ] ;
422
421
}
423
- await connector . close ( ) ;
424
422
} )
425
423
) ;
426
424
You can’t perform that action at this time.
0 commit comments