show table data

This commit is contained in:
Jan Prochazka
2020-01-25 17:26:51 +01:00
parent 2a40b05ae0
commit 73bcfaeb36
13 changed files with 112 additions and 43 deletions

View File

@@ -1,8 +1,12 @@
import { ChildProcess } from 'child_process';
export interface QueryResult {
rows: any[];
}
export interface EngineDriver {
connect({ server, port, user, password });
query(pool, sql: string): Promise<any[]>;
query(pool, sql: string): Promise<QueryResult>;
getVersion(pool): Promise<string>;
listDatabases(pool): Promise<{ name: string }[]>;
analyseFull(pool): Promise<void>;