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

21 lines 864 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getTestQueryRunnerToken = exports.TRANSACTION_EVENT_LISTENER_DECORATOR = exports.TRANSACTION_DECORATOR = exports.TRANSACTION_MODULE_OPTION_TOKEN = void 0; exports.TRANSACTION_MODULE_OPTION_TOKEN = Symbol('@nestjs-transaction/typeorm-module-option'); /** * Transaction decorator inject token */ exports.TRANSACTION_DECORATOR = Symbol('TRANSACTION_DECORATOR'); /** * Event listener decorator inject token */ exports.TRANSACTION_EVENT_LISTENER_DECORATOR = Symbol('TRANSACTION_EVENT_LISTENER_DECORATOR'); const TEST_QUERY_RUNNER_TOKEN = Symbol('TEST_QUERY_RUNNER_TOKEN'); /** * Test QueryRunnenr Token */ const getTestQueryRunnerToken = () => { return TEST_QUERY_RUNNER_TOKEN; }; exports.getTestQueryRunnerToken = getTestQueryRunnerToken; //# sourceMappingURL=symbol.js.map