UNPKG

@kepler.gl/utils

Version:

kepler.gl constants used by kepler.gl components, actions and reducers

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