Comparing version 0.5.8 to 0.5.9
@@ -36,2 +36,9 @@ // Pool | ||
.tap(function(connection) { | ||
// remove connection from the pool if the connection disconnects | ||
connection.on('error', function (err) { | ||
//console.log('connection error: ' + err); | ||
pool.poolInstance.destroy(connection); | ||
}); | ||
connection.__cid = _.uniqueId('__cid'); | ||
@@ -38,0 +45,0 @@ if (pool.config.afterCreate) { |
@@ -70,2 +70,2 @@ // MySQL | ||
}); | ||
}); |
// PostgreSQL | ||
// ------- | ||
// Other dependencies, including the `pg` library, | ||
// Other dependencies, including the `pg` or `pg.js` libraries, | ||
// which needs to be added as a dependency to the project | ||
// using this database. | ||
var _ = require('lodash'); | ||
var pg = require('pg'); | ||
var pg = null; | ||
try { | ||
pg = require('pg'); | ||
} catch (e) { | ||
pg = require('pg.js'); | ||
} | ||
// All other local project modules needed in this scope. | ||
@@ -11,0 +17,0 @@ var ServerBase = require('./base').ServerBase; |
@@ -1,2 +0,2 @@ | ||
// Knex.js 0.5.8 | ||
// Knex.js 0.5.9 | ||
// -------------- | ||
@@ -91,3 +91,3 @@ | ||
// Keep in sync with package.json | ||
knex.VERSION = '0.5.8'; | ||
knex.VERSION = '0.5.9'; | ||
@@ -94,0 +94,0 @@ // Runs a new transaction, taking a container and returning a promise |
@@ -145,2 +145,4 @@ // Builder | ||
operator = '='; | ||
} else if (!_.contains(operators, operator)) { | ||
throw new Error('Invalid operator: ' + operator); | ||
} | ||
@@ -435,7 +437,2 @@ | ||
option: function(opts) { | ||
this.opts = _.extend(this.opts, opts); | ||
return this; | ||
}, | ||
// Truncate | ||
@@ -442,0 +439,0 @@ truncate: function() { |
{ | ||
"name": "knex", | ||
"version": "0.5.8", | ||
"version": "0.5.9", | ||
"description": "A query builder for Postgres, MySQL and SQLite3, designed to be flexible, portable, and fun to use.", | ||
@@ -5,0 +5,0 @@ "main": "knex.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
252384
6505