@nestjs-cls/transactional
Version:
A nestjs-cls plugin for transactional decorators
11 lines • 640 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTransactionClsKey = exports.TRANSACTIONAL_ADAPTER_OPTIONS = exports.TRANSACTION_CONNECTION = void 0;
exports.TRANSACTION_CONNECTION = Symbol('TRANSACTION_CONNECTION');
exports.TRANSACTIONAL_ADAPTER_OPTIONS = Symbol('TRANSACTIONAL_OPTIONS');
const TRANSACTION_CLS_KEY = Symbol('TRANSACTION_CLS_KEY');
const getTransactionClsKey = (connectionName) => connectionName
? Symbol.for(`${TRANSACTION_CLS_KEY.description}_${connectionName}`)
: TRANSACTION_CLS_KEY;
exports.getTransactionClsKey = getTransactionClsKey;
//# sourceMappingURL=symbols.js.map