egg-bookshelf
Install
$ npm i egg-bookshelf --save
Usage
// {app_root}/config/plugin.jsexportsbookshelf = enable: true package: 'egg-bookshelf';
Transaction
egg-knex
support manual/auto commit.
Manual commit
const trx = appknex;try trx; ; trx catch e trx; throw e;
Auto commit
const result = appknex;
Configuration
// {app_root}/config/config.default.jsexportsbookshelf = ;
see config/config.default.js for more detail.
Example
Questions & Suggestions
Please open an issue here.