better type habndling, shell-tableReader for preserving table structure

This commit is contained in:
Jan Prochazka
2020-06-18 21:50:37 +02:00
parent cecb88f024
commit bfc6f2a8a8
13 changed files with 52 additions and 16 deletions

View File

@@ -23,7 +23,7 @@ export interface EngineDriver {
connect(nativeModules, { server, port, user, password, database }): any;
query(pool: any, sql: string): Promise<QueryResult>;
stream(pool: any, sql: string, options: StreamOptions);
readQuery(pool: any, sql: string): Promise<stream.Readable>;
readQuery(pool: any, sql: string, structure?: TableInfo): Promise<stream.Readable>;
writeTable(pool: any, name: NamedObjectInfo, options: WriteTableOptions): Promise<stream.Writeable>;
analyseSingleObject(
pool: any,