Skip to content

Commit e5f49e8

Browse files
committed
feat: update getAllColumnsInTable method to return structured column details
1 parent 9cf36ca commit e5f49e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adminforth/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,8 @@ class AdminForth implements IAdminForth {
408408

409409
async getAllColumnsInTable(
410410
tableName: string
411-
): Promise<{ [dataSourceId: string]: string[] }> {
412-
const results: { [dataSourceId: string]: string[] } = {};
411+
): Promise<{ [dataSourceId: string]: Array<{ name: string; type?: string; isPrimaryKey?: boolean }> }> {
412+
const results: { [dataSourceId: string]: Array<{ name: string; type?: string; isPrimaryKey?: boolean }> } = {};
413413

414414
if (!this.config.databaseConnectors) {
415415
this.config.databaseConnectors = { ...this.connectorClasses };

0 commit comments

Comments
 (0)