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

    Interface InsertOptions

    Options for insert and insertShard.

    1.4.0

    interface InsertOptions {
        idColumn?: string;
        returning?: string | boolean | string[];
        table?: string;
    }

    Hierarchy (View Summary)

    Index
    idColumn?: string

    Primary-key column name (default: id)

    returning?: string | boolean | string[]

    Append a RETURNING clause; true returns *, or pass explicit columns

    table?: string

    Table the INSERT writes to. When set and the generated id collides with a mapping on another shard, the call deletes the row it just wrote (matched on idColumn, default id) before it throws. It is validated before the INSERT runs. Without it, the refused row stays on the shard and the error names its shard and id.