Documentation
    Preparing search index...

    Interface TransactionOptions

    Options provided when the transaction is created

    interface TransactionOptions {
        benchmark?: boolean;
        constraintChecking?: ConstraintChecking | Class<ConstraintChecking>;
        isolationLevel?: IsolationLevel | null;
        logging?: false | ((sql: string, timing?: number) => void);
        readOnly?: boolean;
        transaction?: Transaction | null;
        type?: TransactionType;
    }

    Hierarchy (View Summary)

    Index
    benchmark?: boolean

    Pass query execution time in milliseconds as second argument to logging function (options.logging).

    constraintChecking?: ConstraintChecking | Class<ConstraintChecking>

    Sets the constraints to be deferred or immediately checked. PostgreSQL only

    isolationLevel?: IsolationLevel | null

    Sets the isolation level of the transaction.

    logging?: false | ((sql: string, timing?: number) => void)

    A function that gets executed while running the query to log the sql.

    readOnly?: boolean

    Whether this transaction will only be used to read data. Used to determine whether sequelize is allowed to use a read replication server.

    transaction?: Transaction | null

    Parent transaction. Will be retrieved from CLS automatically if not provided or if null.

    Sets the type of the transaction. Sqlite only