@honua/sdk-js
    Preparing search index...

    Interface GovernedWarehouseSource<T>Experimental

    interface GovernedWarehouseSource<T = Record<string, unknown>> {
        attachments: AttachmentApi;
        capabilities: Capabilities;
        capabilityProfile?: CapabilityProfile;
        descriptor: SourceDescriptor;
        warehouseCapabilities: WarehouseEffectiveSourceCapabilities;
        adapter<K extends AdapterKind>(kind: K): AdapterFor<K> | undefined;
        applyEdits(envelope: EditEnvelope<T>): Promise<EditResult>;
        assertFormat(format: WarehouseOutputFormat): void;
        cacheKey(extra?: Readonly<Record<string, unknown>>): string;
        protocol<K extends AdapterKind>(kind: K): AdapterFor<K> | undefined;
        query(request?: Query<T>): Promise<Result<T>>;
        queryAggregate(
            request: Query<T> & { aggregation: AggregationSpec },
        ): Promise<Result<T>>;
        queryAll(request?: Query<T>): Promise<Result<T>>;
        queryExtent(
            request?: Query<T>,
        ): Promise<{ count?: number; extent: HonuaExtent | null }>;
        queryObjectIds(request?: Query<T>): Promise<readonly FeatureId[]>;
        queryRelated<R = Record<string, unknown>>(
            request: RelatedQuery,
        ): Promise<RelatedResult<R>>;
        stream(request?: Query<T>): AsyncGenerator<Result<T>, void, undefined>;
        supports<const C extends CapabilityId>(
            capability: C,
        ): this is GovernedWarehouseSource<T> & SupportedSourceCapability<C>;
        supportsFormat(format: WarehouseOutputFormat): boolean;
        supportsSpatialPredicate(predicate: WarehouseSpatialPredicate): boolean;
    }

    Type Parameters

    • T = Record<string, unknown>

    Hierarchy (View Summary)

    Index

    Properties

    attachments: AttachmentApi

    Attachment operations namespace; methods throw if attachments is missing.

    capabilities: Capabilities
    capabilityProfile?: CapabilityProfile
    descriptor: SourceDescriptor

    Methods