npm
npmjs.com › package › @nestjs-cls › transactional
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.
» npm install @nestjs-cls/transactional
Published May 25, 2026
Version 3.2.1
Papooch
papooch.github.io › plugins › available plugins › @nestjs-cls/transactional
@nestjs-cls/transactional | NestJS CLS
The Transactional plugin for nestjs-cls 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.
npm
npmjs.com › package › @nestjs-cls › transactional-adapter-typeorm
@nestjs-cls/transactional-adapter-typeorm - npm
May 25, 2026 - A typeorm adapter for @nestjs-cls/transactional. Latest version: 1.3.5, last published: 2 months ago. Start using @nestjs-cls/transactional-adapter-typeorm in your project by running `npm i @nestjs-cls/transactional-adapter-typeorm`. There are 0 other projects in the npm registry using @nestjs-cls/transactional-adapter-typeorm.
» npm install @nestjs-cls/transactional-adapter-typeorm
Published May 25, 2026
Version 1.3.5
Aaron Boman
aaronboman.com › programming › 2024 › 07 › 12 › per-request-database-transactions-with-nestjs
Per-Request Database Transactions with NestJS – Aaron Boman
July 24, 2024 - Next, the ClsModule is using the ClsPluginTransactional() plugin which provides support for wrapping any function call with a database transaction creating a new transaction if one is not started or re-using an existing one if available. This is very similar to the @Transactional() annotation in the Java Spring framework. As I mentioned in the Note in the Setup section above, the nestjs-cls API is not quite as friendly as typeorm-transactional and that’s because it’s taking the stance that it does not want to monkey-patch TypeORM.
npm
npmjs.com › package › @nestjs-cls › transactional-adapter-prisma
nestjs-cls/transactional-adapter-prisma
» npm install @nestjs-cls/transactional-adapter-prisma
GitHub
github.com › Papooch › nestjs-cls › releases
Releases · Papooch/nestjs-cls
transactional: allows injecting custom providers into custom transaction adapter (#450) (07e1585) (thanks to @Anurag9977) ... There was an error while loading. Please reload this page. @nestjs-cls/transactional-adapter-pg-promise@1.4.4
Author Papooch
npm
npmjs.com › package › @nestjs-cls › transactional-adapter-kysely
nestjs-cls/transactional-adapter-kysely
January 26, 2026 - Kysely adapter for the @nestjs-cls/transactional plugin.
» npm install @nestjs-cls/transactional-adapter-kysely
npm
npmjs.com › package › @nestjs-cls › transactional-adapter-mongoose
@nestjs-cls/transactional-adapter-mongoose - npm
May 25, 2026 - Mongoose adapter for the @nestjs-cls/transactional plugin.
» npm install @nestjs-cls/transactional-adapter-mongoose
Published May 25, 2026
Version 1.1.28
Papooch
papooch.github.io › introduction
Introduction | NestJS CLS
Pluggable an existing solution with the Transactional plugin.
GitHub
github.com › Papooch › nestjs-cls › issues › 140
Add typeorm Adapter for @nestjs-cls/transactional · Issue #140 · Papooch/nestjs-cls
April 17, 2024 - The @nestjs-cls/transactional plugin currently supports a variety of ORM adapters like Prisma, Knex, and Pg-promise to enable CLS (Continuation Local Storage)-based transaction management. This feature allows transaction contexts to be p...
Author Papooch
GitHub
github.com › Papooch › nestjs-cls
GitHub - Papooch/nestjs-cls: A continuation-local storage (async context) module compatible with NestJS's dependency injection. · GitHub
Seamlessly propagating database transaction across services without breaking encapsulation and isolation by explicitly passing it around (Now available with the Transactional plugin)
Author Papooch
npm
npmjs.com › package › @nestjs-cls › transactional-adapter-drizzle-orm
nestjs-cls/transactional-adapter-drizzle-orm
January 26, 2026 - Drizzle ORM adapter for the @nestjs-cls/transactional plugin.
» npm install @nestjs-cls/transactional-adapter-drizzle-orm
Published Jan 26, 2026
Version 1.2.3
Papooch
papooch.github.io › plugins › available plugins › @nestjs-cls/transactional › typeorm adapter
TypeORM adapter | NestJS CLS
ClsModule.forRoot({ plugins: [ new ClsPluginTransactional({ imports: [ // module in which the database instance is provided TypeOrmModule ], adapter: new TransactionalAdapterTypeOrm({ // the injection token of the database instance dataSourceToken: DataSource, }), }), ], }), note · When using with @nestjs/typeorm, the data source token needs to be retrieved with the getDataSourceToken function, that can be optionally provided with a custom connection name.
Papooch
papooch.github.io › plugins › available plugins › @nestjs-cls/transactional › prisma adapter
Prisma adapter | NestJS CLS - Ing. Ondřej Švanda
npm install @nestjs-cls/transactional-adapter-prisma · yarn add @nestjs-cls/transactional-adapter-prisma · pnpm add @nestjs-cls/transactional-adapter-prisma ·
Stack Overflow
stackoverflow.com › questions › 68863623 › how-to-use-transactions-in-typeorm-with-typeorm-transactional-cls-hooked
nestjs - How to use transactions in Typeorm with typeorm-transactional-cls-hooked - Stack Overflow
MANDATORY option will support main transaction ... import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; import { initializeTransactionalContext } from 'typeorm-transactional'; async function bootstrap() { initializeTransactionalContext(); const app = await NestFactory.create(AppModule); await app.listen(3000); } bootstrap();
UNPKG
app.unpkg.com › @nestjs-cls › transactional@2.6.1
UNPKG
March 26, 2025 - A nestjs-cls plugin for transactional decorators · papooch.github.io/nestjs-cls/