summaryrefslogtreecommitdiff
path: root/lib/db/bookshelf.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-12-26 09:46:55 +0100
committerJules Laplace <julescarbon@gmail.com>2017-12-26 09:46:55 +0100
commit0ef7a5e0dc1a156a20ca75c8d75f0a26e814b02d (patch)
treebffc7969e44daa916c3751ff7429a3a860f06c4c /lib/db/bookshelf.js
parentfc37dac763fcc9011121cfad2e91493521ebd0dc (diff)
scrubbing design
Diffstat (limited to 'lib/db/bookshelf.js')
-rw-r--r--lib/db/bookshelf.js11
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/db/bookshelf.js b/lib/db/bookshelf.js
index 69157cc..1a2f609 100644
--- a/lib/db/bookshelf.js
+++ b/lib/db/bookshelf.js
@@ -6,13 +6,10 @@ var knex = require('knex')({
password : process.env.DB_PASS,
database : process.env.DB_NAME,
charset : 'utf8',
- typecast : function (field, next) {
- console.log(field.type)
- if (field.type == 'BLOB') {
- return field.string()
- }
- return next()
- }
+ pool: {
+ min: 2,
+ max: 4
+ },
}
})