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

    Interface InsertResult<T>

    Result returned by insert and insertShard.

    The helper keeps the normal query payload but also exposes the generated primary key when the backend returns one through RETURNING rows or provider metadata.

    1.1.4

    interface InsertResult<T = Record<string, unknown>> {
        error?: string;
        generatedId: string | number;
        meta: QueryResultMeta;
        results: T[];
        success: boolean;
    }

    Type Parameters

    • T = Record<string, unknown>

    Hierarchy (View Summary)

    Index
    error?: string

    Optional backend-specific error detail

    generatedId: string | number

    Generated primary key returned by the database or driver.

    Execution metadata

    results: T[]

    Returned rows for the statement

    success: boolean

    Whether the statement executed successfully