1.0.4 • Published 5 years ago

knex-transaction v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

Project Title

A wrapper for Knex Transaction for Objection ORM

Getting Started:

CLS Hooked has been used to manage the knex transaction.

Setup

To run this project, install it locally using npm :

Example :

const transaction = require('knex-transaction)

function xyz() {
    return "async-objection-query"
}

module.exports = transaction(xyz)

To use transaction object in the models. simply use :

Objection.Model.query(session.get('session').get('tx'))

Development is still on going. Looking for way around to inject transaction object directly in query builder within transaction layer.

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago