Interface HonuaKernelConnection<T>

Kernel-managed connection returned by HonuaKernel.connect.

HonuaKernelConnection is additive beside the existing lower-level HonuaConnection returned by standalone connect(). Both expose the same Dataset -> Source contract; this handle additionally owns refresh and disposal semantics.

interface HonuaKernelConnection<T> {
    dataset: Dataset;
    id: string;
    sourceDescriptors: readonly SourceDescriptor<Protocol>[];
    [asyncDispose](): PromiseLike<void>;
    dispose(): Promise<void>;
    explain(query: Readonly<Query<T>>, options?: ExplainOptions): Promise<QueryExecutionPlanV1>;
    inspect(options?: InspectOptions): Promise<ConnectionInspection>;
    mount<TKind, TRaw, TRendererOptions>(target: RendererTarget, options: MountOptions<T, TKind, TRaw, TRendererOptions>): Promise<MountedMap<TKind, TRaw>>;
    query(query: Readonly<Query<T>>, options?: ExplainOptions): Promise<FeatureQueryResult<T>>;
    query(plan: QueryExecutionPlanV1, options?: ExplainOptions): Promise<FeatureQueryResult<T>>;
    source<TSource>(id?: string): Source<TSource>;
}

Type Parameters

  • T = Record<string, unknown>

Hierarchy

  • AsyncDisposable
    • HonuaKernelConnection

Properties

dataset: Dataset
id: string
sourceDescriptors: readonly SourceDescriptor<Protocol>[]

Methods

  • Returns PromiseLike<void>