@karmaniverous/entity-manager
    Preparing search index...

    Class BaseQueryBuilder<CC, EntityClient, IndexParams, ET, ITS, CF, K>Abstract

    Abstract base class supporting a fluent API for building a ShardQueryMap using a database client.

    Type Parameters

    Index

    Constructors

    Properties

    entityClient: EntityClient

    EntityClient instance.

    entityToken: Extract<keyof Exactify<CC["EntityMap"]>>

    Entity token.

    hashKeyToken: CC["HashKey"] | CC["ShardedKeys"]

    Hash key token.

    indexParamsMap: Record<ITS, IndexParams> = ...

    Maps indexToken values to database platform-specific query parameters.

    pageKeyMap?: string

    Dehydrated page key map.

    Methods

    • Protected

      Build a shard query function for a specific index token.

      Parameters

      • indexToken: ITS

        Index token identifying which index to query.

      Returns ShardQueryFunction<CC, ET, ITS, CF, K>

      A ShardQueryFunction that queries a single shard for this index.

      Implementations are provider-specific (e.g., DynamoDB). The returned function must:

      • Query exactly one shard (partition) per invocation using the provided hash key value.
      • Respect pageKey and pageSize for pagination.
      • Return pageKey: undefined when that shard is exhausted.

      Entity Manager will orchestrate calling these functions across shards and indexes.