Provides query capability for one or more data/FeatureSource!FeatureSources.

interface QueryProvider {
    count(source: FeatureSource, where: string, options?: QueryOptions): Promise<CountResult>;
    isSupported(source: FeatureSource): boolean;
    query(source: FeatureSource | FeatureSource[], where: string, options?: QueryOptions): AsyncIterable<Feature, any, any>;
}

Implemented by

Methods

  • Queries a given feature source for a count of features that match the query criteria.

    Parameters

    • source: FeatureSource

      The source to query.

    • where: string

      An SQL expression to match against, e.g. "lastName='Smith'".

    • Optionaloptions: QueryOptions

      Additional options that affect the query.

    Returns Promise<CountResult>

  • Determines whether this provider can handle queries for the given feature source.

    Parameters

    Returns boolean

  • Queries a given feature source for features that match the query criteria.

    Parameters

    • source: FeatureSource | FeatureSource[]

      The source to query.

    • where: string

      An SQL expression to match against, e.g. "lastName='Smith'".

    • Optionaloptions: QueryOptions

      Additional options that affect the query.

    Returns AsyncIterable<Feature, any, any>