fix: too many connect error (#71)

* add fetch all struct

* add other database implement

* rename method name

* adjust the order of functions

* eslint

* eslint

* eslint

* eslint

* eslint

* fix error end when fetch schema batch
This commit is contained in:
CorrectRoadH
2023-05-04 23:36:48 +08:00
committed by GitHub
parent 498bf156c0
commit 40e86fbdaf
5 changed files with 138 additions and 8 deletions

View File

@ -16,6 +16,11 @@ export interface Connector {
tableName: string,
structureFetched: (tableName: string, structure: string) => void
) => Promise<void>;
getTableStructureBatch: (
databaseName: string,
tableNameList: string[],
structureFetched: (tableName: string, structure: string) => void
) => Promise<void>;
}
export const newConnector = (connection: Connection): Connector => {