koa-knex-middleware
Knex.js Middleware for Koa. Package is versioned in step with http://knexjs.org/#changelog
npm)
0. Installation (via $ npm install koa-knex --save
1. Usage (contrived example)
var _ = ; var knex = ; ... app
2. Options
The following environment variables will be automatically used for the Knex.js connection object if set:
KOA_KNEX_HOST
KOA_KNEX_PORT
KOA_KNEX_USER
KOA_KNEX_PASSWORD
KOA_KNEX_DATABASE
KOA_KNEX_CHARSET
KOA_KNEX_SSL
KOA_KNEX_DEBUG