@databricks/sql
Version:
Driver for connection to Databricks SQL via Thrift API.
24 lines (23 loc) • 591 B
TypeScript
/// <reference types="node" />
import { HeadersInit } from 'node-fetch';
export interface ProxyOptions {
protocol: 'http' | 'https' | 'socks' | 'socks4' | 'socks4a' | 'socks5' | 'socks5h';
host: string;
port: number;
auth?: {
username?: string;
password?: string;
};
}
export default interface IConnectionOptions {
host: string;
port: number;
path?: string;
https?: boolean;
headers?: HeadersInit;
socketTimeout?: number;
proxy?: ProxyOptions;
ca?: Buffer | string;
cert?: Buffer | string;
key?: Buffer | string;
}