typings refactor - no compilation, renamed package

This commit is contained in:
Jan Prochazka
2020-02-02 12:02:41 +01:00
parent af80a2799f
commit 4fe2912707
20 changed files with 68 additions and 103 deletions

16
types/engines.d.ts vendored Normal file
View File

@@ -0,0 +1,16 @@
import { QueryResult } from "./query";
export interface EngineDriver {
connect({ server, port, user, password }: {
server: any;
port: any;
user: any;
password: any;
}): any;
query(pool: any, sql: string): Promise<QueryResult>;
getVersion(pool: any): Promise<string>;
listDatabases(pool: any): Promise<{
name: string;
}[]>;
analyseFull(pool: any): Promise<void>;
analyseIncremental(pool: any): Promise<void>;
}