Skip to content

Commit b79bee4

Browse files
committed
feat: add abstract methods for table and column retrieval in base connector
1 parent 7d771c8 commit b79bee4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

adminforth/dataConnectors/baseConnector.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,13 @@ export default class AdminForthBaseConnector implements IAdminForthDataSourceCon
353353
return newRecord;
354354
});
355355
}
356+
async getAllTables(): Promise<string[]> {
357+
throw new Error('getAllTables() must be implemented in subclass');
358+
}
359+
360+
async getAllColumnsInTable(tableName: string): Promise<string[]> {
361+
throw new Error('getAllColumnsInTable() must be implemented in subclass');
362+
}
356363

357364

358365
}

0 commit comments

Comments
 (0)