hapi-knex-postgres
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "hapi-knex-postgres", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Knex plugin for hapi using postgres", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -12,2 +12,7 @@ # hapi-knex-postgres | ||
## Dependcies | ||
- postgres | ||
- (knex)[http://knexjs.org/] | ||
- (generic-pool)[https://github.com/coopernurse/node-pool] | ||
## Use | ||
@@ -21,5 +26,5 @@ - Register plugin | ||
attach: 'onPreHandler', // By default will be attach to onPreHandler | ||
detach: 'tail, // by default, will close the pool connection when request end | ||
detach: 'tail', // by default, will close the pool connection when request end | ||
searchPath: 'public', you can overwrite it | ||
pool: { // checkout (generic-pool)[https://github.com/coopernurse/node-pool] }, | ||
pool: { // checkout generic-pool }, | ||
debug: boolean, //default false | ||
@@ -26,0 +31,0 @@ acquireConnectionTimeout: 10000 |
42954
58