@databricks/sql
Version:
Driver for connection to Databricks SQL via Thrift API.
18 lines (17 loc) • 618 B
TypeScript
import BaseCommand from './BaseCommand';
import { TOpenSessionReq, TOpenSessionResp } from '../../../thrift/TCLIService_types';
import IThriftClient from '../../contracts/IThriftClient';
type Client = Pick<IThriftClient, 'OpenSession'>;
/**
* For auth mechanism GSSAPI the host and service should be provided when session is opened.
*
* TOpenSessionReq.configuration: {
* krb_host?: string;
* krb_service?: string;
* [key: string]: any;
* }
*/
export default class OpenSessionCommand extends BaseCommand<Client> {
execute(openSessionRequest: TOpenSessionReq): Promise<TOpenSessionResp>;
}
export {};