import * as arrow from 'apache-arrow'; export interface DatabaseConnection { query(statement: string): Promise; insertArrowTable(arrowTable: arrow.Table, { name }: { name: string; }): Promise; close(): any; } export interface DatabaseAdapter { connect(): Promise; registerFileText(name: string, text: string): Promise; registerFileHandle(name: string, handle: any, protocol: number, directIO: boolean): Promise; }