UNPKG

nestjs-transaction

Version:

A library that extracts and provides only some of the functions of the 'typeorm-transactional' npm module that are needed to operate in the Nestjs + TypeORM environment

25 lines 939 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.IsolationLevel = void 0; /** * Enumeration that represents transaction isolation levels for use with the {@link Transactional} annotation */ exports.IsolationLevel = { /** * A constant indicating that dirty reads, non-repeatable reads and phantom reads can occur. */ READ_UNCOMMITTED: 'READ UNCOMMITTED', /** * A constant indicating that dirty reads are prevented; non-repeatable reads and phantom reads can occur. */ READ_COMMITTED: 'READ COMMITTED', /** * A constant indicating that dirty reads and non-repeatable reads are prevented; phantom reads can occur. */ REPEATABLE_READ: 'REPEATABLE READ', /** * A constant indicating that dirty reads, non-repeatable reads and phantom reads are prevented. */ SERIALIZABLE: 'SERIALIZABLE', }; //# sourceMappingURL=isolation-level.js.map