prorm API Reference
    Preparing search index...

    Interface CreateOptions

    Options for inserting one row: which fields to write, whether to validate, and the transaction to run inside.

    interface CreateOptions {
        include?: IncludeOptions[] | Includeable[];
        ignoreDuplicates?: boolean;
        validate?: boolean;
        fields?: string[];
        returning?: boolean | string[];
        raw?: boolean;
        isNewRecord?: boolean;
        using?: string;
        transaction?: Transaction;
        hooks?: boolean;
        sideEffects?: boolean;
        logging?: boolean | ((sql: string, time?: number) => void);
        benchmark?: boolean;
    }

    Hierarchy (View Summary)

    Index
    include?: IncludeOptions[] | Includeable[]
    ignoreDuplicates?: boolean
    validate?: boolean
    fields?: string[]
    returning?: boolean | string[]
    raw?: boolean
    isNewRecord?: boolean
    using?: string

    Connection name to use for this query Allows querying a different database connection

    transaction?: Transaction
    hooks?: boolean
    sideEffects?: boolean
    logging?: boolean | ((sql: string, time?: number) => void)
    benchmark?: boolean