UNPKG

@databricks/sql

Version:

Driver for connection to Databricks SQL via Thrift API.

26 lines (25 loc) 859 B
import IDBSQLLogger from './IDBSQLLogger'; import IDriver from './IDriver'; import IConnectionProvider from '../connection/contracts/IConnectionProvider'; import IThriftClient from './IThriftClient'; export interface ClientConfig { directResultsDefaultMaxRows: number; fetchChunkDefaultMaxRows: number; arrowEnabled?: boolean; useArrowNativeTypes?: boolean; socketTimeout: number; retryMaxAttempts: number; retriesTimeout: number; retryDelayMin: number; retryDelayMax: number; useCloudFetch: boolean; cloudFetchConcurrentDownloads: number; useLZ4Compression: boolean; } export default interface IClientContext { getConfig(): ClientConfig; getLogger(): IDBSQLLogger; getConnectionProvider(): Promise<IConnectionProvider>; getClient(): Promise<IThriftClient>; getDriver(): Promise<IDriver>; }