UNPKG

@ydbjs/core

Version:

Core driver for YDB: manages connections, endpoint discovery, authentication, and service client creation. Foundation for all YDB client operations.

19 lines 671 B
import type { EndpointInfo } from '@ydbjs/api/discovery'; import { type Channel, type ChannelCredentials, type ChannelOptions } from 'nice-grpc'; export interface Connection { readonly nodeId: bigint; readonly address: string; readonly channel: Channel; pessimizedUntil?: number; close(): void; } export declare class LazyConnection implements Connection { #private; pessimizedUntil?: number; constructor(endpoint: EndpointInfo, channelCredentials: ChannelCredentials, channelOptions?: ChannelOptions); get nodeId(): bigint; get address(): string; get channel(): Channel; close(): void; } //# sourceMappingURL=conn.d.ts.map