import Int64 from 'node-int64'; import { TSessionHandle, TProtocolVersion } from '../../thrift/TCLIService_types'; import ISessionBackend from '../contracts/ISessionBackend'; import IOperationBackend from '../contracts/IOperationBackend'; import IClientContext from '../contracts/IClientContext'; import { ExecuteStatementOptions, TypeInfoRequest, CatalogsRequest, SchemasRequest, TablesRequest, TableTypesRequest, ColumnsRequest, FunctionsRequest, PrimaryKeysRequest, CrossReferenceRequest } from '../contracts/IDBSQLSession'; import Status from '../dto/Status'; import InfoValue from '../dto/InfoValue'; export declare function numberToInt64(value: number | bigint | Int64): Int64; interface ThriftSessionBackendOptions { handle: TSessionHandle; context: IClientContext; serverProtocolVersion?: TProtocolVersion; } export default class ThriftSessionBackend implements ISessionBackend { private readonly context; private readonly sessionHandle; private readonly serverProtocolVersion?; constructor({ handle, context, serverProtocolVersion }: ThriftSessionBackendOptions); private getRunAsyncForMetadataOperations; get id(): string; getInfo(infoType: number): Promise; executeStatement(statement: string, options: ExecuteStatementOptions): Promise; getTypeInfo(request: TypeInfoRequest): Promise; getCatalogs(request: CatalogsRequest): Promise; getSchemas(request: SchemasRequest): Promise; getTables(request: TablesRequest): Promise; getTableTypes(request: TableTypesRequest): Promise; getColumns(request: ColumnsRequest): Promise; getFunctions(request: FunctionsRequest): Promise; getPrimaryKeys(request: PrimaryKeysRequest): Promise; getCrossReference(request: CrossReferenceRequest): Promise; close(): Promise; private createOperationBackend; } export {};