@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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.4.26,848latest

Version History

VersionDownloads (Last 7 Days)Published
2.4.26,848
2.4.1315
2.4.0338
2.3.11,411
2.3.0174
2.2.2500
2.2.157
2.2.070
2.1.00
2.0.30
2.0.20
2.0.10
2.0.00
1.0.10

Package Sidebar

Install

npm i @nestjs-cls/transactional

Weekly Downloads

9,509

Version

2.4.2

License

MIT

Unpacked Size

35.4 kB

Total Files

19

Last publish

Collaborators

  • papooch