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

    Interface BatchShardResult<T>

    Result of a routed batch, grouped by the shard that ran it.

    There is no combined success flag on purpose: a batch spanning three shards is three independent transactions, so "did it work" is a per-shard question.

    1.4.0

    interface BatchShardResult<T = Record<string, unknown>> {
        error?: string;
        indices: number[];
        results: QueryResult<T>[];
        shard: string;
    }

    Type Parameters

    • T = Record<string, unknown>
    Index
    error?: string

    Set when the whole group failed before producing per-statement results

    indices: number[]

    Indices into the original entries array, in execution order

    results: QueryResult<T>[]

    Result per statement, in the same order as indices

    shard: string

    Shard the statements ran against