cls-porqpine

0.0.2 • Public • Published

cls-porqpine

If you try to use continuation-local-storage with porqpine, you'll quickly discover that porqpine loses your CLS context. This happens because mongo loses the CLS context, and this module exists to solve that problem.

Usage

var cls = require('continuation-local-storage');
var porqpine = require('porqpine');
var porqpatch = require('cls-porqpine');

// patch mongodb to cure its amnesia
porqpatch(cls.createNamespace('transaction'));

/cls-porqpine/

    Package Sidebar

    Install

    npm i cls-porqpine

    Weekly Downloads

    3

    Version

    0.0.2

    License

    none

    Last publish

    Collaborators

    • davejhilton