@nestjs-cls/transactional
TypeScript icon, indicating that this package has built-in type declarations

2.4.2 • Public • Published

@nestjs-cls/transactional

A "Transactional" plugin for nestjs-cls that provides a generic interface that can be used to wrap any function call in a CLS-enabled transaction by storing the transaction reference in the CLS context.

The transaction reference can be then retrieved in any other service and refer to the same transaction without having to pass it around.

The plugin is designed to be database-agnostic and can be used with any database library that supports transactions (via adapters). At the expense of using a minimal wrapper, it deliberately does not require any monkey-patching of the underlying library.

Package Sidebar

Install

npm i @nestjs-cls/transactional

Weekly Downloads

10,017

Version

2.4.2

License

MIT

Unpacked Size

35.4 kB

Total Files

19

Last publish

Collaborators

  • papooch