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
23 lines (22 loc) • 921 B
TypeScript
/**
* Enumeration that represents transaction isolation levels for use with the {@link Transactional} annotation
*/
export declare const IsolationLevel: {
/**
* A constant indicating that dirty reads, non-repeatable reads and phantom reads can occur.
*/
readonly READ_UNCOMMITTED: "READ UNCOMMITTED";
/**
* A constant indicating that dirty reads are prevented; non-repeatable reads and phantom reads can occur.
*/
readonly READ_COMMITTED: "READ COMMITTED";
/**
* A constant indicating that dirty reads and non-repeatable reads are prevented; phantom reads can occur.
*/
readonly REPEATABLE_READ: "REPEATABLE READ";
/**
* A constant indicating that dirty reads, non-repeatable reads and phantom reads are prevented.
*/
readonly SERIALIZABLE: "SERIALIZABLE";
};
export type IsolationLevelType = (typeof IsolationLevel)[keyof typeof IsolationLevel];