chore: use prettier for project and apply to all files

This commit is contained in:
Tianzhou Chen
2023-04-29 22:49:07 +08:00
parent 74754e1476
commit ea7a48a26b
55 changed files with 1040 additions and 434 deletions

View File

@ -5,10 +5,17 @@ import mssql from "./mssql";
export interface Connector {
testConnection: () => Promise<boolean>;
execute: (databaseName: string, statement: string) => Promise<ExecutionResult>;
execute: (
databaseName: string,
statement: string
) => Promise<ExecutionResult>;
getDatabases: () => Promise<string[]>;
getTables: (databaseName: string) => Promise<string[]>;
getTableStructure: (databaseName: string, tableName: string, structureFetched: (tableName: string, structure: string) => void) => Promise<void>;
getTableStructure: (
databaseName: string,
tableName: string,
structureFetched: (tableName: string, structure: string) => void
) => Promise<void>;
}
export const newConnector = (connection: Connection): Connector => {