@earth-app/collegedb
    Preparing search index...

    Function index

    • Creates an index on the shard resolved by the provided key.

      Type Parameters

      • T = Record<string, unknown>

      Parameters

      • key: string

        Primary key used for shard routing

      • table: string

        Target table name

      • columns: string | string[] | IndexColumnDefinition[]

        One or more columns to index

      • options: Omit<CreateIndexOptions, "batchSize"> = {}

        Index creation options

      Returns Promise<QueryResult<T>>

      Query result for the DDL statement

      1.1.4